{{-- Reusable package card. Usage: @include('frontend.components.package-card', ['package' => $package]) --}} @php $img = \Illuminate\Support\Str::startsWith($package->image ?? '', 'http') ? $package->image : ($package->image ? asset($package->image) : placeholder_image('card')); $rating = number_format(4.6 + ($package->id % 4) * 0.1, 1); $isWishlisted = in_array($package->id, $wishlisted ?? []); @endphp
{{ $package->title }} {{ $package->category }}
{{ \Illuminate\Support\Str::before($package->destination, ',') }} {{ $package->duration_days }}D / {{ $package->duration_nights }}N

{{ $package->title }}

@if(multiVendorEnabled() && $package->vendor)
{{ ___('vendor.Sold by') }} {{ $package->vendor->company_name }}
@endif
{{ $rating }} ยท {{ 40 + ($package->id * 13) % 200 }} {{ ___('frontend.reviews_word') }}
{{ currency_symbol() }}{{ number_format($package->price) }} {{ ___('frontend.per_adult') }}
{{ ___('frontend.details') }}