@extends('layouts.app') @section('content') @include('pages.po.partials.menu')
| No | Date | Supplier Code | ETA Date | Amount | PIC | Approved By | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $poGeneral->no }} | {{ $poGeneral->formatted_date }} | {{ $poGeneral->supplier_code }} | {{ $poGeneral->formatted_eta_date }} | @switch($poGeneral->status) @case(true) {{ $poGeneral->details->first()->currency_code ?? null }} {{ number_format($poGeneral->details->sum('amount'), 2, ',', '.') }} @break @default @endswitch | {{ $poGeneral->createdBy->full_contact }} | {{ $poGeneral->approvedBy->full_contact }} | @switch($poGeneral->status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch |