@if(!empty($lotdata->id)) Update @else Add @endif Lot
@csrf
@if ($errors->has('sup_name'))
{{ $errors->first('sup_name') }}
@endif
@if ($errors->has('inv_no'))
{{ $errors->first('inv_no') }}
@endif
@if ($errors->has('lot_date'))
{{ $errors->first('lot_date') }}
@endif
@if ($errors->has('no_pro'))
{{ $errors->first('no_pro') }}
@endif
@if ($errors->has('amount'))
{{ $errors->first('amount') }}
@endif
@if(!empty($lotdata->pay_status) && $lotdata->pay_status == 'Part Payment')
@php $zrlv=0; @endphp
@endif @php $totalamount = !empty($lotdata->amount) ? $lotdata->amount : 0; $paidamount = !empty($lotdata->pay_note) ? $lotdata->pay_note : 0; $pending = $totalamount - $paidamount ; @endphp
@if ($errors->has('pay_status'))
{{ $errors->first('pay_status') }}
@endif pay_status) && $lotdata->pay_status == 'Full Payment') style="display:none" @elseif(old('pay_status') == 'Full Payment') style="display:none" @else style="display:none" @endif type="text" class="form-control payment-box mt-3" id="pay_note" name="pay_note" value="" maxlength="10" onkeypress="return isNumber(event)" onpaste="return false" placeholder="Pay now">
@endsection @section('scripts') @endsection