{{ html()->label('Date:')->class('form-label') }}
{{ html()->text('date')->class('form-control flatpickr-date bg-light border-0')->placeholder('Date')->required() }}
{{ html()->label('Estimate#')->class('form-label') }}
@php if ($editable) { $estimateNumber = $estimate->estimate_no; } else { $estimateNumber = generateEstimateNumber(); } @endphp
{{ html()->text('estimate_no', $estimateNumber)->class('form-control bg-light border-0') }}
{{ html()->label('Customer')->class('form-label') }} {{ html()->select('customer_id', $customerList)->class('form-control select2')->placeholder('Customer Name')->required() }}
{{ html()->label('Validity')->class('form-label') }} {{ html()->text('validity')->class('form-control flatpickr-date bg-light border-0')->required() }}
{{ html()->label('Estimate for')->class('form-label') }} {{ html()->text('title')->class('form-control')->placeholder('Estimate for')->required() }}
{{ html()->label('Condition')->class('form-label') }} {{ html()->text('conditions')->class('form-control')->placeholder('Conditions')->required() }}
Estimate Details
{{ html()->label('Item')->class('form-label') }} {{ html()->select(null, $billingComponentList)->class('form-control select2 item')->placeholder('Billing Component') }}
{{ html()->label('Price')->class('form-label') }} {{ html()->number(null)->class('form-control price')->placeholder('Price') }}
{{ html()->label('Qty')->class('form-label') }} {{ html()->number(null)->class('form-control qty')->placeholder('Quantity') }}
{{ html()->label('Taxable')->class('form-label') }} {{ html()->select(null, ['1' => 'Yes', '0' => 'No'], 1)->class('form-control select2 taxable')->placeholder('Yes/No') }}
@if ($editable) @foreach ($estimate->estimateDetails as $index => $item) @endforeach @endif
S.N Particular Qty Rate Non-Taxable Taxable Action
{{$index + 1}} ${item->text} ${price.value} ${qty.value} ${taxable.value == 1 ? '-' : qty.value * price.value} ${taxable.value == 0 ? '-' : qty.value * price.value}
Total {{ html()->text('totalNonTaxable')->class('form-control border-0')->id('non-taxable-total')->placeholder('0.00')->isReadOnly(true) }} {{ html()->text('totalTaxable')->class('form-control border-0')->id('taxable-total')->placeholder('0.00')->isReadOnly(true) }}
Tax(13%) {{ html()->text('tax')->class('form-control bg-light border-0')->id('tax')->placeholder('0.00')->isReadOnly(true) }}
Total Tax {{ html()->text('amountWithTax')->class('form-control bg-light border-0')->id('amount-with-tax')->placeholder('0.00')->isReadOnly(true) }}
Grand Total {{ html()->text('grandTotal')->class('form-control bg-light border-0')->id('grand-total')->placeholder('0.00')->isReadOnly(true) }}
@push('js') @endpush