@extends('layouts.app') @section('title', 'Supplier Details') @section('content')

{{ $supplier->company_name }}

Supplier Information

{{ $supplier->company_name }}

{{ $supplier->business_type ?? 'N/A' }}

{{ $supplier->tax_id ?? 'N/A' }}

{{ $supplier->contact_person }}

{{ $supplier->phone }}

{{ $supplier->mobile ?? 'N/A' }}

{{ $supplier->payment_terms ?? 'N/A' }}

@if($supplier->credit_limit) LKR {{ number_format($supplier->credit_limit, 2) }} @else N/A @endif

Product Vendor Mappings ({{ $supplier->products->count() }} products)

@if($supplier->products->count() > 0) @foreach($supplier->products as $product) @endforeach
Product Details Internal SKU Vendor Code Vendor Cost Price Lead Time Status
{{ $product->product_name }}
{{ $product->category?->cat_name }} | {{ $product->brand?->brand_name }}
{{ $product->sku }}
{{ $product->item_code }}
{{ $product->pivot->vendor_product_code }} @if($product->pivot->vendor_cost_price) LKR {{ number_format($product->pivot->vendor_cost_price, 2) }} @else - @endif @if($product->pivot->lead_time_days) {{ $product->pivot->lead_time_days }} days @else - @endif @if($product->pivot->is_preferred) Preferred @else Standard @endif
@else

No products mapped to this supplier yet.

@endif
@endsection