@extends('layouts.app') @section('title', $vendor->name) @section('content') {{-- Vendor Header --}}
@if($vendor->logo) {{ $vendor->name }} @else
{{ substr($vendor->name, 0, 1) }}
@endif

{{ $vendor->name }}

@if($vendor->description)

{{ Str::limit($vendor->description, 200) }}

@endif
{{ $products->total() }} Products
${{ number_format($vendor->total_sales ?? 0, 2) }} Total Sales
@if($vendor->city)
{{ $vendor->city }}{{ $vendor->country ? ', ' . $vendor->country : '' }}
@endif
{{-- Vendor Products --}}

Products from {{ $vendor->name }}

Browse all items from this vendor

All Vendors
@if($products->count() > 0)
{{ $products->links() }}
@else

No Products Yet

This vendor hasn't added any products yet.

Browse Other Vendors
@endif
@endsection