@extends('front.layout.master') @section('main_content')

{{ $package->name }}

{{ $package->destination->name }}

@if($package->total_score || $package->total_rating)
@php $package_rating = $package->total_score/$package->total_rating; @endphp @for($i=1; $i<=5; $i++) @if($i <= $package_rating) @elseif($i-0.5 <= $package_rating) @else @endif @endfor
({{ $package_rating }} out of 5)
@else
@for($i=1; $i<=5; $i++) @endfor
(No Rating Found)
@endif
${{ $package->price }} @if($package->old_price != '')${{ $package->old_price }}@endif
per person

Detail

{!! $package->description !!}

@if($package_amenities_include->count() > 0)

Includes

@foreach($package_amenities_include as $item)
{{ $item->amenity->name }}
@endforeach
@endif @if($package_amenities_exclude->count() > 0)

Excludes

@foreach($package_amenities_exclude as $item)
{{ $item->amenity->name }}
@endforeach
@endif

Itinerary

@foreach($package_itineraries as $item) @endforeach
{{ $item->name }} {!! $item->description !!}

Location Map

{!! $package->map !!}
@if($package_photos->count() > 0)

Photos

@foreach($package_photos as $item) @endforeach
@endif @if($package_videos->count() > 0)

Videos

@foreach($package_videos as $item) @endforeach
@endif

Frequently Asked Questions

@foreach($package_faqs as $item)

{!! $item->answer !!}
@endforeach

Reviews ({{ $reviews->count() }})

@forelse($reviews as $item)
@if($item->user->photo == '') @else @endif
{{ $item->user->name }}
{{ $item->created_at->format('Y-m-d') }}
@for($i=1; $i<=5; $i++) @if($i <= $item->rating) @else @endif @endfor
{!! $item->comment !!}
@empty
No Review Found.
@endforelse

Leave Your Review

@if(Auth::guard('web')->check()) @php $review_possible = App\Models\Booking::where('package_id',$package->id)->where('user_id',Auth::guard('web')->user()->id)->where('payment_status','Completed')->count(); @endphp @if($review_possible > 0) @php App\Models\Review::where('package_id',$package->id)->where('user_id',Auth::guard('web')->user()->id)->count() > 0 ? $reviewed = true : $reviewed = false; @endphp @if($reviewed == false)
@csrf
@else
You have already given review.
@endif @else
You have to book this package to give review.
@endif @else Login to Review @endif

Ask Your Question

@csrf
@if($tours->count() > 0)
@csrf
@php $i=0; @endphp @foreach($tours as $item) @if($item->booking_end_date < date('Y-m-d')) @continue @endif @php $i++; $total_booked_seats = 0; $all_data = App\Models\Booking::where('tour_id',$item->id)->where('package_id',$package->id)->get(); foreach($all_data as $data) { $total_booked_seats += $data->total_person; } if($item->total_seat == '-1') { $remaining_seats = 'Unlimited'; } else { $remaining_seats = $item->total_seat - $total_booked_seats; } @endphp

Tour {{ $i }}

Tour Start Date {{ $item->tour_start_date }}
Tour End Date {{ $item->tour_end_date }}
Booking End Date {{ $item->booking_end_date }}
Total Seat @if($item->total_seat == -1) Unlimited @else {{ $item->total_seat }} @endif
Booked Seat {{ $total_booked_seats }}
Remaining Seat {{ $remaining_seats }}
@endforeach

Payment

@if(Auth::guard('web')->check()) @else Login to Book @endif
@else
No Tour Available.
@endif
@endsection