<label for="">ایڈوانس رقم:</label>
<select name="payable_pump" id="pump_payalbe_p" onchange="p_pump_payable_change()" class="form-control">
    <option value="">----Select Pump Payable----</option>

    @forelse($pump_payables as $payable)
        @php
            if ($payable->short_amount != 0) {
                $actual_amount = $payable->short_amount;
            } else {
                $actual_amount = $payable->remainder_amount;
            }
        @endphp

        <option value="{{ $payable->id }}"
                data-id="{{ $payable->id }}"
                data-amount="{{ $actual_amount }}"
                data-vehicle-id="{{ $payable->vehicle_id }}"
                data-trip-id="{{ $payable->trip_id }}">
            {{ $actual_amount }}
            (Trip:{{$payable->trip_id}} - B:{{$payable->bility_number}}) - V:{{ $payable->vehicle->vehicle_no }}
        </option>
    @empty
        <option value="">No pump payables available</option>
    @endforelse
</select>
<span class="text-danger error" id="payable_pump_error"></span>
