@include('purchase::partials.styles')

{{ $vendor->name }} {{ $vendor->status }}

@if(session('success'))
{{ session('success') }}
@endif
🏢 Basic Information
Vendor Code
{{ $vendor->vendor_code }}
Vendor Name
{{ $vendor->name }}
Display Name
{{ $vendor->display_name ?? '-' }}
Contact Person
{{ $vendor->contact_person ?? '-' }}
Email
{{ $vendor->email ? ''.$vendor->email.'' : '-' }}
Phone
{{ $vendor->phone ?? '-' }}
Mobile
{{ $vendor->mobile ?? '-' }}
Website
{!! $vendor->website ? ''.$vendor->website.'' : '-' !!}
📑 Tax Information
GST Type
{{ $vendor->gst_type }}
GST Number
{{ $vendor->gst_number ?? '-' }}
PAN Number
{{ $vendor->pan_number ?? '-' }}
📍 Billing Address
Address
{{ $vendor->billing_address ?? '-' }}
City
{{ $vendor->billing_city ?? '-' }}
State
{{ $vendor->billing_state ?? '-' }}
PIN Code
{{ $vendor->billing_pincode ?? '-' }}
Country
{{ $vendor->billing_country ?? 'India' }}
💰 Payment Terms
Payment Terms
{{ $vendor->payment_terms ?? '-' }}
Credit Days
{{ $vendor->credit_days }} days
Credit Limit
₹{{ number_format($vendor->credit_limit, 2) }}
Opening Balance
₹{{ number_format($vendor->opening_balance, 2) }}
@if($vendor->bankDetail)
🏦 Bank Details
Account Holder
{{ $vendor->bankDetail->account_holder_name ?? '-' }}
Bank Name
{{ $vendor->bankDetail->bank_name ?? '-' }}
Account Number
{{ $vendor->bankDetail->account_number ?? '-' }}
IFSC Code
{{ $vendor->bankDetail->ifsc_code ?? '-' }}
Branch
{{ $vendor->bankDetail->branch_name ?? '-' }}
Account Type
{{ $vendor->bankDetail->account_type ?? '-' }}
UPI ID
{{ $vendor->bankDetail->upi_id ?? '-' }}
SWIFT Code
{{ $vendor->bankDetail->swift_code ?? '-' }}
@endif @if(isset($vendorItems) && $vendorItems->count() > 0)
📦 Vendor Items ({{ $vendorItems->count() }})
@foreach($vendorItems as $idx => $item) @endforeach
# Product Vendor SKU Unit Purchase Price MOQ Lead Days Preferred
{{ $idx + 1 }}
{{ $item->product->name ?? 'Unknown' }} @if($item->variation) {{ $item->variation->variation_name ?? $item->variation->sku }} @endif
SKU: {{ $item->product->sku ?? '-' }}
{{ $item->vendor_sku ?? '-' }} {{ $item->unit ? ($item->unit->short_name ?? $item->unit->name) : '-' }} ₹{{ number_format($item->purchase_price, 2) }} {{ $item->moq }} {{ $item->lead_days }} days @if($item->is_preferred) @else - @endif
@endif @if($vendor->notes)
📝 Notes

{{ $vendor->notes }}

@endif
🕐 Audit Information
Created By
{{ $vendor->creator->name ?? '-' }}
Created At
{{ $vendor->created_at->format('d M Y, h:i A') }}
Updated At
{{ $vendor->updated_at->format('d M Y, h:i A') }}
Status
{{ $vendor->status }}