@extends('layouts.app') @section('title', 'Suppliers') @section('content') {{-- ── Page Header ─────────────────────────────────────────────────────────── --}}
Manage your supplier directory
| Code | Company | Category | Contact & Email | Phone / WhatsApp | Address | Tax / Credit | Status |
|---|---|---|---|---|---|---|---|
| {{ $supplier->supplier_code ?: '—' }} | {{-- Company + website --}}
{{ $supplier->name }}
@if($supplier->website)
@endif
|
{{-- Category --}}
@if($supplier->category) {{ $supplier->category }} @else — @endif | {{-- Contact person + emails stacked --}}
@if($supplier->contact_person)
{{ $supplier->contact_person }}
@endif
@if($supplier->email)
@endif
@if($supplier->secondary_email)
@endif
@if(!$supplier->contact_person && !$supplier->email)
—
@endif
|
{{-- Phones stacked --}}
@if($supplier->phone) {{ $supplier->phone }} @endif @if($supplier->phone2) {{ $supplier->phone2 }} @endif @if($supplier->whatsapp) {{ $supplier->whatsapp }} @endif @if(!$supplier->phone && !$supplier->phone2 && !$supplier->whatsapp) — @endif | {{-- Address --}}{{ $supplier->address ?: '—' }} | {{-- Tax + Credit stacked --}}
@if($supplier->tax_number)
{{ $supplier->tax_number }}
@endif
@if(in_array(strtolower($supplier->credit_terms ?? ''), ['y','yes']))
Credit{{ $supplier->credit_days ? ' · '.$supplier->credit_days.'d' : '' }}
@elseif(!$supplier->tax_number)
—
@endif
|
{{-- Status --}}
@if($supplier->is_active) Active @else Inactive @endif |
| No suppliers found. | |||||||