@extends('layouts.app') @section('title','Job Profitability') @section('page_title','Job Profitability') @section('content')

Job Profitability

{{ $from }} to {{ $to }}

Export CSV
@include('reports.partials.date-filter')
@forelse($jobs as $j)@empty@endforelse
JobDateCustomerRouteRevenueCostProfitMarginStatus
{{ $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.
{{ $jobs->links() }}
@endsection