@extends('layouts.app') @section('title', 'Job Costing') @section('breadcrumbs') @endsection @section('content')

Job Costing

Profitability analysis per shipment / job

@php $stats = [['label'=>'Active Jobs','count'=>$stats['active']??0,'icon'=>'bi-briefcase','color'=>'primary'],['label'=>'Total Revenue','count'=>'₹'.number_format($stats['revenue']??0,2),'icon':'bi-cash-stack','color'=>'success'],['label'=>'Total Cost','count'=>'₹'.number_format($stats['cost']??0,2),'icon'=>'bi-credit-card','color'=>'danger'],['label'=>'Avg Margin','count'=>($stats['avg_margin']??0).'%','icon'=>'bi-graph-up-arrow','color'=>'info']]; @endphp @foreach($stats as $stat)
@endforeach
@forelse($jobs ?? [] as $j) @empty @endforelse
Job #CustomerShipment #RevenueCostMarginStatusActions
{{ $j->job_number ?? 'N/A' }} {{ $j->customer->name ?? 'N/A' }} {{ $j->shipment_number ?? 'N/A' }} {{ number_format($j->total_revenue ?? 0, 2) }} {{ number_format($j->total_cost ?? 0, 2) }} {{ number_format($j->margin ?? 0, 1) }}%

No jobs found

@endsection @push('scripts') @endpush