@extends('layouts/contentLayoutMaster') @section('title', 'Management Customer POs') @section('vendor-style') {{-- Page Css files --}} @endsection @section('page-style') {{-- Page Css files --}} @endsection @section('content')
@include('content.partial.form-message')

Customer POs List

input("search")) }}"/>
input("date")) }}"/>
@php $customers = \App\Models\Customer::orderBy('name', 'asc')->get(); if($customers->count()){ @endphp @php } @endphp
@php $inventories = \App\Models\Inventory::orderBy('part_number', 'asc')->get(); if($inventories->count()){ @endphp @php } @endphp
@php $our_quotations = \App\Models\OurQuotation::orderBy('quotation_number', 'asc')->get(); if($our_quotations->count()){ @endphp @php } @endphp
@php $statuses = ['No Action', 'Semi Under Process', 'Under Process', 'In Shipping', 'Shipped', 'Received', 'Invoiced', 'Cancelled', 'Hold']; $options = request()->input("status") ? request()->input("status") : ['No Action', 'Semi Under Process', 'Under Process', 'In Shipping', 'Shipped', 'Received', 'Hold']; if(!empty($statuses)){ @endphp @php } @endphp
Reset
@can('Order - CustomerPOs - Add') Add New Customer PO @endcan Export Excel

@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

@foreach( $orders as $order ) @endforeach
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 file @php 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 }}
{{ $orders->appends($_REQUEST)->fragment('top-list')->links('vendor.pagination.bootstrap-5') }}
@endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @endsection