@extends('procurement::layouts.master')
@section('title',$supplier->name)
@section('content')
{{ $supplier->name }} {{ ucfirst(str_replace('_',' ',$supplier->status)) }}
- Contact
- {{ $supplier->contact_name ?: '—' }}
- Phone
- {{ $supplier->phone ?: '—' }}
- Email
- @if($supplier->email){{ $supplier->email }}@else—@endif
- Website
- @if($supplier->website)Visit @else—@endif
- Account #
{{ $supplier->account_number ?: '—' }}
- Terms
- {{ $supplier->payment_terms ?: '—' }}
- Country
- {{ $supplier->country ?: '—' }}
@if($supplier->notes)- Notes
- {{ $supplier->notes }}
@endif
| PO # | Date | Status | Total |
@forelse($supplier->purchaseOrders->take(10) as $o)
| {{ $o->po_number }} | {{ $o->order_date->format('M j, Y') }} | {{ ucfirst($o->status) }} | ${{ number_format($o->total_amount,2) }} |
@empty| No orders |
@endforelse
@endsection