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

Invoice Parts

@if($invoice_part->inventory_id)
@csrf @method('patch') @else @csrf @method('put') @endif
Info
due_date) ? old("due_date", $invoice->due_date) : date('Y-m-d') }}" disabled /> @error('due_date')
{{ $message }}
@enderror
@php $customer_pos = \App\Models\CustomerPO::orderBy('customer_po_number', 'asc')->get(); if($customer_pos->count()){ @endphp @php } @endphp @error('vendor_id')
{{ $message }}
@enderror
due_date) ? old("due_date", $invoice->due_date) : date('Y-m-d') }}" disabled /> @error('due_date')
{{ $message }}
@enderror
@php if( is_file(public_path('storage/' . $invoice->file_path)) ){ echo "Attachment"; } @endphp
Terms
@error('shipping_method')
{{ $message }}
@enderror
@error('shipping_terms')
{{ $message }}
@enderror
@error('payment_terms')
{{ $message }}
@enderror
Cost
@error('shipping_cost')
{{ $message }}
@enderror
@error('clearance')
{{ $message }}
@enderror
@error('sales_tax')
{{ $message }}
@enderror
date) }}" required disabled /> @error('date')
{{ $message }}
@enderror
@error('invoice_number')
{{ $message }}
@enderror
Delivery
@error('awb')
{{ $message }}
@enderror
delivery_date) ? old("delivery_date", $invoice->delivery_date) : date('Y-m-d') }}" required disabled /> @error('delivery_date')
{{ $message }}
@enderror
@php $parts = \App\Models\Inventory::orderBy('part_number', 'asc')->get(); if($parts->count()){ @endphp @php } @endphp @error('inventory_id')
{{ $message }}
@enderror
@error('quantity')
{{ $message }}
@enderror
@error('condition')
{{ $message }}
@enderror
@error('unit_price')
{{ $message }}
@enderror
@if($invoice_part->inventory_id) @else @endif Reset

@php $i = 0; $sub_total = 0; @endphp @foreach( $invoiceParts as $invoicePart ) @php $sub_total += $invoicePart->unit_price * $invoicePart->quantity; @endphp @endforeach
Row Part Number Description Condition Quantity Unit Price Total Price Action
{{ ++$i }} @can('Business - Inventories - List') @endcan {{ $invoicePart->inventory->part_number }} @can('Business - Inventories - List') @endcan {{ $invoicePart->inventory->description }} {{ $invoicePart->condition }} {{ $invoicePart->quantity }} {{ number_format($invoicePart->unit_price, 2) }} {{ number_format($invoicePart->unit_price * $invoicePart->quantity, 2) }}
Sub Total: {{ number_format($sub_total, 2) }}
@endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @endsection