{{ $customer->customer_number }} {{ $customer->customer_type->label() }} @if (auth()->user()->hasMultipleOrganizations()) {{ $customer->organization?->name }} @endif
@can('delete', $customer) @unless ($hasAnyOrders) Delete @endunless @endcan @can('changeStatus', $customer) {{ $customer->isActive() ? 'Deactivate' : 'Activate' }} @endcan @can('update', $customer) Edit @endcan @can('createWorkOrder', $customer) @if ($customer->isActive()) Create Work Order @endif @endcan
@unless ($customer->isActive()) This customer is inactive. Activate the customer before creating new work orders. @endunless
@forelse ($orders as $order) @empty @endforelse
Work orderVendor / packageOrder dateDeadlineStatus
{{ $order->work_order_number }}

{{ $order->vendor_name_snapshot }}

{{ $order->package_name_snapshot }}

{{ format_date($order->work_order_date) }} {{ format_date($order->deadline_date) }}
@can('createWorkOrder', $customer) @if ($customer->isActive()) Create Work Order @endif @endcan
@if ($customer->notes)

{{ $customer->notes }}

@endif
@if ($customer->company_name)@endif {{ format_phone($customer->phone) }} @if ($customer->alternate_phone)Alt: {{ format_phone($customer->alternate_phone) }}@endif @if ($customer->email){{ $customer->email }}@else—@endif @if ($customer->seller) @can('view', $customer->seller) {{ $customer->seller->fullName() }} @else {{ $customer->seller->fullName() }} @endcan @elseNot assigned@endif
@if ($customer->serviceAddress)
{{ $customer->serviceAddress->streetLine() }}
{{ $customer->serviceAddress->cityLine() }} @if ($customer->serviceAddress->county)
{{ $customer->serviceAddress->county }} County@endif
@endif

Mailing address

@if ($customer->mailingAddress)
{{ $customer->mailingAddress->streetLine() }}
{{ $customer->mailingAddress->cityLine() }}
@else

Same as service address

@endif