@extends('admin.layout.master') @section('title', 'QUOTATION MANAGEMENT '.($transaction_type == 2 ? '-Sale' : '-Purchase')) @section('custom_style') @if($transaction_type == 2) @else @endif @endsection @section('content')

{{ $parent_id ? __('obs.revise_quotation') : ($quotation ? __('obs.update_quotation') : __('obs.create_quotation')) }} {{ $transaction_type == 2 ? '('.__('obs.sale').')' : '' }}

{!! getDateInput('start_date', 'start_date', Request()->start_date) !!} {!! getDateInput('end_date', 'end_date', Request()->end_date) !!}
@csrf
@if($parent_id) @else @endif
@include('v2.inventory.global.party_live_dd', [ 'type' => $transaction_type == 1 ? 1 : 2, // 1 = vendor, 2 = customer 'cls' => 'p', 'id' => 'vendor_id', 'name' => 'vendor_id', 'selected_party' => $quotation ? $quotation->supplier : ($requisition->supplier ?? null), ])
@if($transaction_type == 1)
@else
@endif
@php $i = 0; @endphp @if ($quotation) @foreach ($quotation->details as $p=>$item) @php $i++; @endphp @endforeach @elseif ($requisition) @foreach ($requisition->details as $p=>$item) @php $i++; @endphp @endforeach @endif
# {{ __('obs.product') }} {{ __('obs.note') }} {{ __('obs.req.') }} {{ __('obs.qty') }} {{ __('obs.quotation') }} {{ __('obs.qty') }} {{ __('obs.unit') }} {{ __('obs.price') }} {{ __('obs.vat') }}% {{ __('obs.subtotal') }}
{{ $i + 1 }}
{{ $i + 1 }}
{{ $item->product->name_eng }}
{{ __('obs.total') }}
{{ __('obs.vat_amount') }}
{{ __('obs.discount') }}{{ __('obs.(%)') }} {{ __('obs.discount') }} {{ __('obs.(amount)') }}
{{ __('obs.net') }} {{ __('obs.amount') }}
@if($transaction_type == 2)
is_template == 1 ? 'checked' : '' }} name="is_template" id="is_template" value="1">
@endif
@include('inventory.prepurchase.quotation.install_modal') @endsection @section('script') @stop