@extends('procurement::layouts.master') @section('title',$supplier->name) @section('content')

{{ $supplier->name }} {{ ucfirst(str_replace('_',' ',$supplier->status)) }}

Edit← Back
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
Purchase Orders
@forelse($supplier->purchaseOrders->take(10) as $o) @empty@endforelse
PO #DateStatusTotal
{{ $o->po_number }}{{ $o->order_date->format('M j, Y') }}{{ ucfirst($o->status) }}${{ number_format($o->total_amount,2) }}
No orders
@endsection