<?php $__env->startSection('content'); ?>
<section class="section">
          <div class="section-header">
            <h1>All Tickets</h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>">Dashboard</a></div>
              <div class="breadcrumb-item"><a href="#">Developer</a></div>
              <div class="breadcrumb-item">Tickets</div>
            </div>
          </div>

          <div class="section-body">
          
          	<div class="row">
          		<div class="col-12">
          			<div class="card">
		              <div class="card-header">
		                <h4><span>Semua Tiket</span></h4>
		              </div>
		             
		              <div class="card-body">
		              	<?php if(session('success')): ?>
	                        <div class="alert alert-primary" role="alert">
	                            <i class="fa fa-check-circle"></i> <?php echo session('success'); ?>

	                        </div>
		              	<?php elseif(session('danger')): ?>
	                        <div class="alert alert-danger" role="alert">
	                            <i class="fa fa-exclamation-circle"></i> <?php echo e(session('danger')); ?>

	                        </div>
	                    <?php endif; ?>
	                    <?php if($errors->has('quantity')): ?>
		                    	<div class="alert alert-danger" role="alert">
		                            <i class="fa fa-exclamation-circle"></i> <?php echo e($errors->first('quantity')); ?>

		                        </div>
						<?php endif; ?>
						<div class="float-right">
							<a href="<?php echo e(url('developer/ticket/add')); ?>" class="btn btn-primary">New ticket</a>
						</div>
						<div class="clearfix mb-3"></div>
						<div class="table-responsive">
							<table class="table table-striped">	
								<tr>
									<th>ID</th>
									<th>User</th>
									<th>Judul</th>
									<th>Status</th>
									<th>Action</th>
								</tr>
								<?php $__currentLoopData = $tickets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ticket): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<tr>
									<td><?php echo e($ticket->id); ?></td>
									<td><?php echo e($ticket->user->email); ?></td>
									<td><?php echo e($ticket->subject); ?></td>
									<td>
										<span class="badge badge-<?php echo e(($ticket->status == 'Open'?'success':($ticket->status == 'Closed'?'danger':'info'))); ?>"><?php echo e($ticket->status); ?>

									</td>
									<td>
										<a href="<?php echo e(url('/developer/ticket/'.$ticket->id)); ?>" class="btn btn-secondary">
											<i class="fas fa-eye"></i>
										</a>
									</td>
								</tr>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</table>
						</div>
	                     
		              </div>
		            
		            </div>
          		</div>
          		<div class="col-md-4">
          			
          		</div>
          	</div>
            
          </div>
        </section>




<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Berkc\OneDrive\Masaüstü\smm\zoopedia-master\resources\views\developer\tickets\index.blade.php ENDPATH**/ ?>