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

Vendor Quotations List

input("search")) }}"/>
input("date")) }}"/>
@php $customer_rfqs = \App\Models\CustomerRfq::orderBy('customer_rfq_number', 'asc')->get(); if($customer_rfqs->count()){ @endphp @php } @endphp
@php $inventories = \App\Models\Inventory::orderBy('part_number', 'asc')->get(); if($inventories->count()){ @endphp @php } @endphp
@php $vendors = \App\Models\Vendor::orderBy('name', 'asc')->get(); if($vendors->count()){ @endphp @php } @endphp
Reset
@can('Business - VendorQuotations - Add') Add New Vendor Quotation @endcan

@if($quotations->total()) Records {{ ( $quotations->currentPage() - 1 ) * $quotations->perPage() + 1 }} to {{ ( $quotations->currentPage() - 1 ) * $quotations->perPage() + $quotations->count() }} from {{ $quotations->total() }} Records @else No Record @endif

@foreach( $quotations as $quotation ) @endforeach
Date Customer RFQ Number Vendor Quotation Number Contact Person Total Price File Action
{{ $quotation->date }} @can('Business - CustomerRfqs - Parts') @endcan {{ $quotation->customerRfq->customer_rfq_number }} @can('Business - CustomerRfqs - Parts') @endcan {{ $quotation->vendor->name }} {{ $quotation->quotation_number }} {{ $quotation->contact_person }} @php $quotation_parts = \App\Models\VendorQuotationPart::where('vendor_quotation_id', '=', $quotation->id)->selectRaw('sum(quantity*unit_price) as total')->first(); @endphp {{ number_format( $quotation_parts->total, 2) }} @php if( is_file(public_path('storage/' . $quotation->file_path)) ){ echo ""; @endphp file @php echo ""; } @endphp
{{ $quotations->appends($_REQUEST)->fragment('top-list')->links('vendor.pagination.bootstrap-5') }}
@endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @endsection