@extends('layout.app') @section('title','Edit Freight Bill') @push('header_script') @endpush @section('content')
{!! Form::open(['route' => ['freight-billing.update',$freightBilling->id],'onsubmit'=>'BtnSubmit.disabled = true', 'class'=>'row g-3 needs-validation', 'method' => 'put', 'autocomplete'=>'off','files'=>true]) !!}
{!! Form::select('party_id', [''=>'--Select--',]+$party, $freightBilling->party_id, ['class'=>'form-control select2','id'=>'party_id','required']) !!}
{{$errors->first('party_id')}}
{{ $errors->first('bank_account_id') }}
{{$errors->first('invoice_no')}}
{!! Form::select('client_bank_id', [''=>'--Select--',]+$bank, $freightBilling->client_bank_id, ['class'=>'form-control select2','id'=>'client_bank_id']) !!}
{{$errors->first('client_bank_id')}}
Generated Billing
@php $i = 1; @endphp @foreach($freightBilling->freightBillDetail as $row1) @endforeach
S.no GR No Dispatch Date Truck No. From To Qty Rate Amount Any Deduction Net Amount
{{$loop->iteration}} {{$row1->freightEntry->gr_no}} {{date('Y-m-d',strtotime($row1->freightEntry->invoice_date))}} {{$row1->freightEntry->vehicle->vehicle_no}} {{$row1->freightEntry->from}} {{$row1->freightEntry->to}} {{$row1->freightEntry->weight_mt}} {{$row1->freightEntry->rate_per_mt}} {{$row1->freightEntry->party_total}}
@endsection @push('footer_script') @endpush