@extends('layouts.app') @section('title', 'Job Variants — ' . $job->job_number) @section('breadcrumb'){{ $job->job_number }} Variants@endsection @section('content') @if(session('success'))

{{ session('success') }}

@endif

Job Variants

{{ $job->job_number }} · {{ $job->contact?->full_name }}

Back to Job
@forelse($job->variants->sortByDesc('created_at') as $variant)

{{ $variant->name }}

{{ ucfirst($variant->status) }}
@if($variant->quote)

Linked quote: {{ $variant->quote->quote_number }}

@endif
@if($variant->price_adjustment != 0)
{{ $variant->price_adjustment > 0 ? '+' : '' }}${{ number_format(abs($variant->price_adjustment), 2) }}
total retail (ex. GST)
@endif
@if($variant->description)

{{ $variant->description }}

@endif {{-- Items table --}} @if($variant->items->count())
@foreach($variant->items as $item) @endforeach
Description Item Code Unit Qty Retail Price Total
{{ $item->description }} {{ $item->item_code ?? '—' }} {{ $item->unit ?? 'Each' }} {{ number_format((float)$item->qty, 2) }} ${{ number_format((float)$item->retail_price, 2) }} ${{ number_format($item->retailTotal(), 2) }}
Subtotal (ex. GST) ${{ number_format($variant->totalRetail(), 2) }}
@endif @if($variant->client_notes)

Client notes:

{{ $variant->client_notes }}

@endif @if($variant->internal_notes)

Internal notes:

{{ $variant->internal_notes }}

@endif @if($variant->responded_at)

Responded {{ $variant->responded_at->format('d M Y') }}

@endif @if($variant->stripe_payment_status)

Stripe: {{ ucfirst(str_replace('_', ' ', $variant->stripe_payment_status)) }}

@endif @if($variant->status === 'pending')
@csrf
@csrf
@csrf @method('DELETE')
@endif
@empty

No variants yet for this job.

@endforelse
@endsection