Packages

@if ($canAdd) @endif
@if (session('success'))
Success! {{ session('success') }}
@endif @if (session('error'))
Error! {{ session('error') }}
@endif
List of Packages
@if($packages->isEmpty()) @else @foreach($packages as $package) @php $packageService = new App\Services\PackageService(); $cities=$packageService->getPackageItineraryLocationCities($package->id); $pickup = $package->pickupLocation ? $package->pickupLocation->name : ''; $drop = $package->dropLocation ? $package->dropLocation->name : ''; @endphp @if($package->package_type!='0') @endif @if($package->children && $package->children->count() > 0) @foreach($package->children as $child) @if($child->package_type!='0') package_type!='0') class="table-secondary" @endif> @endif @endforeach @endif @endforeach @endif
Photo Name Duration Type Location Packs Price Status Actions
No Packages found
@if(!empty($package->main_image)) {{ $package->name }} @endif {{ $package->name }}
{!! nl2br(e(wordwrap($cities, 17, "\n", true))) !!}
Pick Drop :{{ $pickup }} - {{$drop}}
{{ $package->days }} (D) {{ $package->nights ?? 0 }} (N) @if($package->type == 0) International @elseif($package->type == 1) Domestic @else Intercity @endif @php $location = $packageService->getPackageItineraryLocation($package->id); @endphp @if($location) {{ $location['location'] }}, ({{ $location['city'] }}, {{ $location['state'] }}, {{ $location['country'] }}) @else No location found @endif {{ $package->adults }} (A), {{ $package->kids ?? 0 }} (K), {{ $package->infant ?? 0 }} (I) @if($package->grand_total == 0) Free @else {{ $package->grand_total }} @endif @if($package->status == 1) Draft @elseif($package->status == 2) In Progress @elseif($package->status == 3) Completed @elseif($package->status == 4) Approved @elseif($package->status == 5) Canceled @endif @if ($canEdit) Edit Duplicate @endif @if ($canView) View @if ($canDelete) Delete @endif @if ($canEdit) Update Status @endif @if (in_array($package->status, [3,4])) View PDF @endif @endif
@if(!empty($child->main_image)) {{ $child->name }} @endif   {{ $child->name }} {{ $child->days }} (D) {{ $child->nights ?? 0 }} (N) @if($child->type == 0) International @elseif($child->type == 1) Domestic @else Intercity @endif @php $location = $packageService->getPackageItineraryLocation($child->id); @endphp @if($location) {{ $location['location'] }}, ({{ $location['city'] }}, {{ $location['state'] }}, {{ $location['country'] }}) @else No location found @endif {{ $child->adults }} (A), {{ $child->kids ?? 0 }} (K), {{ $child->infant ?? 0 }} (I) @if($child->grand_total == 0) Free @else {{ $child->grand_total }} @endif @if($child->status == 1) Draft @elseif($child->status == 2) In Progress @elseif($child->status == 3) Completed @elseif($child->status == 4) Approved @elseif($child->status == 5) Canceled @endif @if ($canEdit) Edit Duplicate @endif @if ($canView) View @if ($canDelete) Delete @endif @if ($canEdit) Update Status @endif @if (in_array($child->status, [3,4])) View PDF @endif @endif