@if($orders->total()) Records {{ ( $orders->currentPage() - 1 ) * $orders->perPage() + 1 }} to {{ ( $orders->currentPage() - 1 ) * $orders->perPage() + $orders->count() }} from {{ $orders->total() }} Records @else No Record @endif
| CPO# | Date | Customer | Vendor POs | Our Quotations | Total Price | File | Invoices | EDD | Status | Action |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $order->customer_po_number }} | {{ $order->date }} | {{ $order->customer->name }} |
@php
$vendor_pos = \App\Models\VendorPOCustomerPO::where('customer_po_id', '=', $order->id)->orderBy('vendor_po_id', 'asc')->get();
@endphp
@foreach( $vendor_pos as $vendor_po)
vendor_po_id) }}' target='_blank' title='{{ $vendor_po->vendorPO->our_po_number }}'>
{{ $vendor_po->vendorPO->vendor->name }}
@endforeach |
@php
$our_quotations = \App\Models\CustomerPOOurQuotation::where('customer_po_id', '=', $order->id)->orderBy('our_quotation_id', 'asc')->get();
@endphp
@foreach( $our_quotations as $our_quotation)
our_quotation_id) }}' target='_blank'>
{{ $our_quotation->ourQuotation->quotation_number }}
@endforeach |
@php $customer_parts = \App\Models\CustomerPOPart::where('customer_po_id', '=', $order->id)->selectRaw('sum(quantity*unit_price) as total')->first(); @endphp {{ number_format( $customer_parts->total, 2) }} |
@php
if( is_file(public_path('storage/' . $order->file_path)) ){
echo "";
@endphp
|
@foreach( $order->invoices as $invoice ) @can('Order - Invoices - List') @php if( is_file(public_path('storage/' . $invoice->file_path)) ){ echo ""; } @endphp @endcan #{{ $invoice->invoice_number }} @can('Order - Invoices - List') @php if( is_file(public_path('storage/' . $invoice->file_path)) ){ echo ""; } @endphp @endcan @endforeach | {{ $order->edd }} | {{ $order->status }} |