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

Vendor Quotation Parts

@if($vendor_quotation_part->inventory_id)
@csrf @method('patch') @else @csrf @method('put') @endif
logo
@php $customer_rfqs = \App\Models\CustomerRfq::orderBy('customer_rfq_number', 'asc')->get(); if($customer_rfqs->count()){ @endphp @php } @endphp @error('customer_rfq_id')
{{ $message }}
@enderror
@php $vendors = \App\Models\Vendor::orderBy('name', 'asc')->get(); if($vendors->count()){ @endphp @php } @endphp @error('vendor_id')
{{ $message }}
@enderror
@error('contact_person')
{{ $message }}
@enderror
@php if( is_file(public_path('storage/' . $vendor_quotation->file_path)) ){ echo "Attachment"; } @endphp
@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('cert')
{{ $message }}
@enderror
@error('tag_date')
{{ $message }}
@enderror
@error('lead_time')
{{ $message }}
@enderror
@error('unit_price')
{{ $message }}
@enderror
@error('note')
{{ $message }}
@enderror
@if($vendor_quotation_part->inventory_id) @else @endif Reset
date) }}" required disabled/> @error('date')
{{ $message }}
@enderror
@error('quotation_number')
{{ $message }}
@enderror
@csrf @method('put')
@error('file')
{{ $message }}
@enderror
Sample File

@php $i = 0; $sub_total = 0; @endphp @foreach( $vendorQuotationParts as $vendorQuotationPart ) @php $sub_total += $vendorQuotationPart->unit_price * $vendorQuotationPart->quantity; @endphp @endforeach
Row Part Number Description Quantity Condition Cert Tag Date Lead Time Unit Price Total Price Note Action
{{ ++$i }} @can('Business - Inventories - List') @endcan {{ $vendorQuotationPart->inventory->part_number }} @can('Business - Inventories - List') @endcan {{ $vendorQuotationPart->inventory->description }} {{ $vendorQuotationPart->quantity }} {{ $vendorQuotationPart->condition }} {{ $vendorQuotationPart->cert }} {{ $vendorQuotationPart->tag_date }} {{ $vendorQuotationPart->lead_time }} {{ number_format($vendorQuotationPart->unit_price, 2) }} {{ number_format($vendorQuotationPart->unit_price * $vendorQuotationPart->quantity, 2) }} {{ $vendorQuotationPart->note }}
Sub Total: {{ number_format($sub_total, 2) }}
@endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @endsection