Files
airline-agency/storage/framework/views/b9189146ee0d59d1083e1550757de2ab.php

266 lines
13 KiB
PHP

<?php $__env->startSection('breadcrumb'); ?>
<div>
<div>
<h1 class="page-title fw-medium fs-18 mb-2">سطل زباله پروازها</h1>
<div>
<nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">
<a href="javascript:void(0);">پروازها</a>
</li>
<li class="breadcrumb-item">
<a href="<?php echo e(route('admin.flights.index')); ?>">
لیست پروازها
</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
سطل زباله پروازها
</li>
</ol>
</nav>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="container-fluid pt-4">
<div class="row">
<div class="col-xl-12">
<div class="card custom-card">
<div class="card-body p-3">
<div class="d-flex align-items-center justify-content-between flex-wrap gap-3">
<div>
<h6 class="mb-0 fw-semibold">
پروازهای حذف‌شده
</h6>
</div>
<div class="d-flex">
<a href="<?php echo e(route('admin.flights.index')); ?>"
class="btn btn-primary me-2">
<i class="ri-arrow-go-back-line me-1 fw-medium align-middle"></i>
بازگشت به لیست پروازها
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-12">
<div class="card custom-card">
<div class="table-responsive">
<table class="table text-nowrap table-bordered">
<thead>
<tr>
<th>تصویر</th>
<th>شماره پرواز</th>
<th>ایرلاین</th>
<th>فرودگاه مبدأ</th>
<th>فرودگاه مقصد</th>
<th>نوع پرواز</th>
<th>محدوده</th>
<th>وضعیت</th>
<th>تاریخ ایجاد</th>
<th>تاریخ حذف</th>
<th>عملیات</th>
</tr>
</thead>
<tbody>
<?php if(session('success')): ?>
<tr>
<td colspan="11">
<span style="color: green">
<?php echo e(session('success')); ?>
</span>
</td>
</tr>
<?php endif; ?>
<?php if(session('error')): ?>
<tr>
<td colspan="11">
<span style="color: red">
<?php echo e(session('error')); ?>
</span>
</td>
</tr>
<?php endif; ?>
<?php if($errors->any()): ?>
<tr>
<td colspan="11">
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<span class="d-block" style="color: red">
<?php echo e($error); ?>
</span>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
</tr>
<?php endif; ?>
<?php $__empty_1 = true; $__currentLoopData = $flights; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $flight): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<tr>
<td>
<span class="avatar avatar-md avatar-square bg-light">
<?php if($flight->coverImage?->file): ?>
<img src="<?php echo e(getFileUrl($flight->coverImage->file_id)); ?>"
class="w-100 h-100"
alt="<?php echo e($flight->flight_number); ?>">
<?php else: ?>
<img src="<?php echo e(asset('assets/admin/images/faces/DefaultAvatar.jpg')); ?>"
class="w-100 h-100"
alt="<?php echo e($flight->flight_number); ?>">
<?php endif; ?>
</span>
</td>
<td>
<div class="fw-medium">
<?php echo e($flight->flight_number ?? '-'); ?>
</div>
</td>
<td>
<?php echo e($flight->airline?->name ?? '-'); ?>
</td>
<td>
<div>
<?php echo e($flight->origin_airport?->name ?? '-'); ?>
</div>
<small class="text-muted">
<?php echo e($flight->origin_airport?->city?->name ?? '-'); ?>
</small>
</td>
<td>
<div>
<?php echo e($flight->airport?->name ?? '-'); ?>
</div>
<small class="text-muted">
<?php echo e($flight->airport?->city?->name ?? '-'); ?>
</small>
</td>
<td>
<?php if($flight->flight_type): ?>
<span class="badge bg-success-transparent">
<?php echo e($flight->flight_type->label()); ?>
</span>
<?php else: ?>
-
<?php endif; ?>
</td>
<td>
<?php if($flight->flight_scope): ?>
<span class="badge bg-primary-transparent">
<?php echo e($flight->flight_scope->label()); ?>
</span>
<?php else: ?>
-
<?php endif; ?>
</td>
<td>
<?php if($flight->status): ?>
<span class="badge bg-warning-transparent">
<?php echo e($flight->status->label()); ?>
</span>
<?php else: ?>
-
<?php endif; ?>
</td>
<td>
<?php echo e($flight->created_at?->toJalali()->format('H:i Y/m/d') ?? '-'); ?>
</td>
<td>
<?php echo e($flight->deleted_at?->toJalali()->format('H:i Y/m/d') ?? '-'); ?>
</td>
<td>
<div class="hstack gap-2 fs-15">
<form action="<?php echo e(route('admin.flights.trash.restore', $flight->id)); ?>"
method="POST">
<?php echo csrf_field(); ?>
<button type="submit"
class="btn btn-icon btn-sm btn-success-light"
data-bs-toggle="tooltip"
data-bs-placement="top"
title="بازگردانی پرواز">
<i class="ri-arrow-go-back-line"></i>
</button>
</form>
<form action="<?php echo e(route('admin.flights.trash.forceDelete', $flight->id)); ?>"
method="POST"
onsubmit="return confirm('آیا از حذف دائمی این پرواز مطمئن هستید؟ این عملیات قابل بازگشت نیست.')">
<?php echo csrf_field(); ?>
<?php echo method_field('DELETE'); ?>
<button type="submit"
class="btn btn-icon btn-sm btn-danger-light"
data-bs-toggle="tooltip"
data-bs-placement="top"
title="حذف دائمی پرواز">
<i class="ri-delete-bin-6-line"></i>
</button>
</form>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<tr>
<td colspan="11" class="text-center text-muted py-4">
پروازی در سطل زباله وجود ندارد.
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<div class="card-footer d-flex justify-content-center align-items-center">
<?php echo e($flights->links()); ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/admin/flights/trash.blade.php ENDPATH**/ ?>