@extends('layouts.app') @section('title','Job Profitability') @section('page_title','Job Profitability') @section('content')
{{ $from }} to {{ $to }}
| Job | Date | Customer | Route | Revenue | Cost | Profit | Margin | Status |
|---|---|---|---|---|---|---|---|---|
| {{ $j->job_number }} | {{ $j->job_date->format('d M Y') }} | {{ $j->customer?->legal_name }} | {{ $j->route?->name ?? ($j->pickup_location.' → '.$j->delivery_location) }} | {{ number_format((float)$j->actual_revenue,2) }} | {{ number_format((float)$j->actual_cost,2) }} | {{ number_format((float)$j->profit,2) }} | {{ number_format((float)$j->profit_percentage,2) }}% | {{ ucwords(str_replace('_',' ',$j->status)) }} |
| No jobs in this period. | ||||||||