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

Our 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 $customers = \App\Models\Customer::orderBy('name', 'asc')->get(); if($customers->count()){ @endphp @php } @endphp
@php $statuses = ['Sent', 'UnSent']; $options = request()->input("status") ? request()->input("status") : []; if(!empty($statuses)){ @endphp @php } @endphp
Reset
@can('Business - OurQuotations - Add') Add New Our 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
Quotation Number Date Customer Customer RFQ Number Total Price File Status Action
{{ $quotation->quotation_number }} {{ $quotation->date }} {{ $quotation->customerRfq->customer->name }} {{ $quotation->customerRfq->customer_rfq_number }} @php $quotation_parts = \App\Models\OurQuotationPart::where('our_quotation_id', '=', $quotation->id)->selectRaw('sum(quantity*unit_price) as total')->first(); @endphp {{ number_format( $quotation_parts->total, 2) }} @can('Business - OurQuotations - Parts') $quotation->id, 'print' => 'no']) }}' target='_blank'> file @endcan {{ $quotation->status == "Sent" ? "Sent" : "" }}
{{ $quotations->appends($_REQUEST)->fragment('top-list')->links('vendor.pagination.bootstrap-5') }}
@endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @endsection