@extends('layouts.adminapp') @section('content') @section('head',__('lng.Trip'))
@csrf
@php $average = ($amount * $Trips->vehicle->driver_commission)/100; @endphp {{-- --}} {{-- --}}
@php // Fetch the ledger data from the ledgerpost table where ledger_id matches the customer's ledger_id $ledger = App\Models\LedgerPosting::where('ledger_id', $Trips->customer_id)->first(); @endphp @if($ledger) @else @endif
{{-- --}}
{{-- --}}
discount==0) @else value="{{$Trips->discount}}" @endif required/>

@endsection