@extends('front.layout.master') @section('main_content') @php $setting = App\Models\Setting::where('id',1)->first(); @endphp

Packages

Search Package

Filter by Price

Filter by Destination

Filter by Review

@foreach($packages as $item)
${{ $item->price }} @if($item->old_price != '')${{ $item->old_price }}@endif

{{ $item->name }}

@if($item->total_score || $item->total_rating)
@php $rating = $item->total_score/$item->total_rating; @endphp @for($i=1; $i<=5; $i++) @if($i <= $rating) @elseif($i-0.5 <= $rating) @else @endif @endfor ({{ $item->reviews->count() }} Reviews)
@else
@for($i=1; $i<=5; $i++) @endfor ({{ $item->reviews->count() }} Reviews)
@endif
{{ $item->destination->name }}
{{ $item->package_amenities->count() }} Amenities
{{ $item->tours->count() }} Tours
{{ $item->package_itineraries->count() }} Days
@endforeach
{{ $packages->appends($_GET)->links() }}
@endsection