@extends('layouts.admin') @section('title', 'Vendors & Suppliers') @section('page-title', 'Vendors / Suppliers') @section('content')
| @php $thSort = fn ($col) => route('admin.vendors.index', array_merge(request()->query(), [ 'sort' => $col, 'dir' => ($sortBy === $col && $sortDir === 'asc') ? 'desc' : 'asc', ])); @endphp | Company name | Contact name | Balance | Billing address | State | Phone | Code | |
|---|---|---|---|---|---|---|---|---|
| {{ $vendor->name }} | {{ $vendor->contact_person ?? '—' }} | ₹{{ number_format($vendor->currentBalance(), 2) }} | {{ $vendor->billingAddressShort() }} | {{ $vendor->state ?? '—' }} | {{ $vendor->email ?? '—' }} | {{ $vendor->phone ?? '—' }} | {{ $vendor->vendor_code ?? '—' }} |