@extends('layouts.rider') @section('content')
| Tracking Number | Commission | Status | Date Completed | Action |
|---|---|---|---|---|
| {{ $item->tracking_no }} | @php // Calculate commission dynamically based on the delivery fee $deliveryFee = \App\Models\DeliveryRate::where('is_active', 1)->value('delivery_fee'); $commission = $deliveryFee; // Assuming a base commission of 60 $totalCommission += $commission; @endphp ₱{{ number_format($commission, 2) }} | @if ($item->status == '7' || $item->status == '8') Completed @endif | @if ($item->status == '7' || $item->status == '8') {{ $item->updated_at->format('F j, Y H:i:s') }} @endif | id) }}" class="btn btn-primary btn-sm">View |