Success! {{ session('success') }}
@endif
@if (session('error'))
Error! {{ session('error') }}
@endif
List of Enquiries
@php
$activeName = request('status') ?? ''; // Ensure it's not null
@endphp
ID | Type | Name | Package | Franchise | CSE | Status | @if (request('status') == "upcoming" || request('status') == "ongoing" || request('status') == "completed")Travel | @elseConfirmed | @endifCreated | Actions |
---|---|---|---|---|---|---|---|---|---|---|
{{ $package->id }} | {{ $package->customer_type != 0 ? $package->customerType?->name : 'Customer' }} | {{ $package->customer_type != 0 ? $package->user?->name : $package->customer?->name }} | {{ $package->package ? $package->package->name : '' }} {{ $package->package->days ?? 0 }} (D) {{ $package->package->nights ?? 0 }} (N) |
{{ $package->franchise ? $package->franchise->name : '' }} | {{ $package->cse ? $package->cse->name : '' }} | @if ($package->status == 1) New @elseif ($package->status == 2) InProgress @elseif ($package->status == 3) Accepted @elseif ($package->status == 4) Confirmed @elseif ($package->status == 5) Settled @else Rejected @endif | @if (request('status') == "upcoming" || request('status') == "ongoing" || request('status') == "completed") {{ \Carbon\Carbon::parse($package->start_date)->format('d M y') }} - {{ \Carbon\Carbon::parse($package->end_date)->format('d M y') }} @else {{ $package->confirm_at ? \Carbon\Carbon::parse($package->confirm_at)->format('d M y h:i:s') : '' }} @endif | {{ \Carbon\Carbon::parse($package->created_at)->format('d M y h:i:s') }} | @if ($canView) @if(isset($package->package)) Details @else Search @endif @endif @if ($canDelete) @if (optional(Auth::user())->user_type == 1 && in_array($package->status, [1, 2, 6])) Delete @endif @endif |