@extends('layouts.print') @section('title', $contract->contract_number) @section('kind', 'Service agreement') @section('number', $contract->contract_number) @section('status', title_case_words($contract->status)) @section('content')

Customer

{{ $contract->customer?->display_name }}
{{ $contract->customer?->customer_number }}
@if ($contract->customer?->billing_address)
{{ $contract->customer->billing_address }}
@endif @if ($contract->customer?->city)
{{ $contract->customer->city }}
@endif @if ($contract->customer?->id_number)
{{ title_case_words($contract->customer->id_type ?? 'id') }} {{ $contract->customer->id_number }}
@endif

Service

@if ($contract->service)
{{ $contract->service->service_number }}
{{ $contract->service->plan?->name }}
{{ $contract->service->installation_address }}
@else
No service attached
@endif
Agreement{{ $contract->title }}
Type{{ strtoupper($contract->type) }}
Starts{{ $contract->starts_on?->format('d M Y') }}
Ends{{ $contract->ends_on?->format('d M Y') }}
TermDetail
Monthly value{{ money($contract->monthly_value) }}
Term{{ $contract->term_months }} month(s)
Notice period{{ $contract->notice_period_days }} day(s)
Auto renew{{ $contract->auto_renew ? 'Yes' : 'No' }}
Signed{{ $contract->signed_at?->format('d M Y H:i') ?: 'Not signed' }}
Total contract value{{ money($contract->monthly_value * $contract->term_months) }}
@if ($contract->terms)

Terms and conditions

{{ $contract->terms }}

@endif
Customer signature
For {{ $organization?->trading_name ?: $organization?->name }}
@endsection