@extends('frontend.layouts.master') @section('title', $vendor->company_name . ' - ' . (settings('name') ?: 'Travelio')) @section('meta', \Illuminate\Support\Str::limit($vendor->description ?: $vendor->company_name . ' ' . ___('vendor.on our marketplace.'), 150)) @section('page', 'vendor') @section('content') @include('frontend.components.page-hero', [ 'title' => $vendor->company_name, 'subtitle' => collect([$vendor->city, $vendor->country])->filter()->join(', '), 'crumbs' => [___('vendor.Vendors') => route('front.vendors'), $vendor->company_name => null], ])
@php $rating = $vendor->avgRating(); @endphp @if($rating)

{{ $rating }} ({{ $vendor->reviews()->count() }} {{ ___('vendor.reviews') }})

@endif @if($vendor->description)

{{ $vendor->description }}

@endif @if($packages->isNotEmpty())

{{ ___('vendor.Tours') }}

@foreach($packages as $package)
@include('frontend.components.package-card', ['package' => $package])
@endforeach
@endif @if($hotels->isNotEmpty())

{{ ___('vendor.Hotels') }}

@foreach($hotels as $hotel)
{{ $hotel->name }}
{{ $hotel->city }}, {{ $hotel->country }}
{{ currency_symbol() }}{{ number_format($hotel->price_per_night) }} / {{ ___('vendor.night') }}
{{ ___('vendor.Book') }}
@endforeach
@endif @if($transport->isNotEmpty())

{{ ___('vendor.Transport') }}

@foreach($transport as $t)
{{ $t->title }}
{{ ___('vendor.From') }} {{ currency_symbol() }}{{ number_format($t->price_from) }} {{ $t->price_unit }}
{{ ___('vendor.View') }}
@endforeach
@endif @if($hajj->isNotEmpty())

{{ ___('vendor.Hajj & Umrah') }}

@foreach($hajj as $h)
{{ $h->title }}
{{ $h->type }} · {{ $h->duration_days }} {{ ___('vendor.days') }}
{{ currency_symbol() }}{{ number_format($h->price) }} {{ ___('vendor.per pilgrim') }}
{{ ___('vendor.View') }}
@endforeach
@endif @if($visas->isNotEmpty())

{{ ___('vendor.Visa services') }}

@foreach($visas as $v)
{{ $v->country }} — {{ $v->visa_type }}
{{ $v->processing_time }}
{{ currency_symbol() }}{{ number_format($v->totalFee()) }}
{{ ___('vendor.View') }}
@endforeach
@endif @if($packages->isEmpty() && $hotels->isEmpty() && $transport->isEmpty() && $hajj->isEmpty() && $visas->isEmpty())

{{ ___('vendor.This vendor has no live listings yet.') }}

@endif
@endsection