@extends('layouts.app') @section('title', 'Gross Profit — ' . $job->job_number) @section('breadcrumb')Gross Profit {{ $job->job_number }}@endsection @section('content')
{{ $job->job_number }} · {{ $job->contact?->full_name }} · {{ $job->stageLabel() }}
| Variant | Item Description | Item Code | Unit | Qty | Retail Price | W/Sale Price | Retail Total | W/Sale Total | Profit |
|---|---|---|---|---|---|---|---|---|---|
| @if($isFirst){{ $line['variant_name'] }}@endif | {{ $line['description'] }} | {{ $line['item_code'] ?? '—' }} | {{ $line['unit'] ?? '—' }} | {{ number_format($line['qty'], 2) }} | ${{ number_format($line['retail_price'], 2) }} | ${{ number_format($line['wsale_price'], 2) }} | ${{ number_format($line['retail_total'], 2) }} | ${{ number_format($line['wsale_total'], 2) }} | {{ $line['profit'] >= 0 ? '+' : '' }}${{ number_format($line['profit'], 2) }} |
| Total Variant Profit | +${{ number_format($variantRevenue, 2) }} | {{ $variantProfit >= 0 ? '+' : '' }}${{ number_format($variantProfit, 2) }} | |||||||
| Description | Section | Qty | Retail Total | W/Sale Cost |
|---|---|---|---|---|
| {{ $item->description }} | {{ $item->section?->name ?? '—' }} | {{ $item->qty ?? 1 }} | ${{ number_format($item->total_retail ?? $item->total ?? 0, 2) }} | ${{ number_format($item->total_wsale ?? 0, 2) }} |
| Total Material Cost | -${{ number_format($matCost, 2) }} | |||
| Staff | Role | Date | Hours | Rate | Cost |
|---|---|---|---|---|---|
| {{ $line['staff'] }} | {{ $line['role'] }} | {{ $line['date'] }} | {{ $line['hours'] > 0 ? $line['hours'].'h' : '—' }} | {{ $line['rate'] > 0 ? '$'.$line['rate'].'/hr' : '—' }} | ${{ number_format($line['cost'], 2) }} |
| Total Labour Cost | -${{ number_format($labourCost, 2) }} | ||||
| Invoice # | Date | Note | Added By | Amount (incl GST) |
|---|---|---|---|---|
| {{ $line['invoice_number'] }} | {{ $line['invoice_date'] }} | {{ $line['note'] ?: '—' }} | {{ $line['added_by'] }} | -${{ number_format($line['amount'], 2) }} |
| Total Invoice Deductions | -${{ number_format($invoiceDeductions, 2) }} | |||
| Description | Source | Qty | Unit Cost | Total |
|---|---|---|---|---|
| {{ $line['description'] }} | {{ $line['source'] ?? '—' }} | {{ number_format($line['qty'], 2) }} | ${{ number_format($line['unit_cost'], 2) }} | ${{ number_format($line['total'], 2) }} |
| Total PO Costs | -${{ number_format($poCost, 2) }} | |||
| Works Order | # | Fault Type | Approved | Cost |
|---|---|---|---|---|
| {{ $line['wo_number'] }} | {{ $line['fault_num'] }} | {{ $line['fault_type'] }} | @if($line['approved'] === 'approved') Approved @else — @endif | -${{ number_format($line['cost'], 2) }} |
| Total Fault Deductions | -${{ number_format($faultDeductions, 2) }} | |||