@extends('backend.partials.master') @section('title') {{ ___('vendor.Vendors') }} @endsection @section('maincontent') @php $tone = ['approved' => 'success', 'pending' => 'warning', 'suspended' => 'secondary', 'rejected' => 'danger']; $total = $counts->sum(); @endphp {{-- Same header actions as every other list: secondary links, then the primary Add button. --}} @unless(multiVendorEnabled())
{{ ___('vendor.Multi-vendor is off. Vendor pages, sign-up and listings are hidden from the site. Turn it on in Settings → General → Marketplace.') }}
@endunless {{-- Status tabs with counts --}} @foreach($vendors as $v) {{ $v->company_name }}
{{ $v->email }} {{ $v->contact_name }}
{{ $v->phone }} {{ ___('vendor.Tours') }} {{ $v->packages_count }} · {{ ___('vendor.Hotels') }} {{ $v->hotels_count }} · {{ ___('vendor.Transport') }} {{ $v->transport_services_count }} @if($v->commission_fixed !== null){{ currency_symbol() }}{{ number_format($v->commission_fixed, 2) }} {{ ___('vendor.per sale') }} @elseif($v->commission_rate !== null){{ rtrim(rtrim($v->commission_rate, '0'), '.') }}% @else{{ ___('vendor.default') }}@endif {{ ___('vendor.'.$v->status) }} {{ ___('vendor.Manage') }} @endforeach
@endsection