@extends('layouts.app') @section('title', isset($customer) ? 'Edit Customer' : 'Add Customer') @section('breadcrumb') @endsection @section('content')
@csrf @if(isset($customer)) @method('PUT') @endif
{{-- Left: Basic Info --}}
{{-- Basic Info --}}
Customer Information
@error('name')
{{ $message }}
@enderror
@if(!($canSelectJobOf ?? true))
Top-level customers with jobs cannot be assigned to another customer.
@else
Select a customer to create this as a job (sub-customer), like QuickBooks Desktop.
@error('parent_id')
{{ $message }}
@enderror @endif
Optional unique identifier
@error('code')
{{ $message }}
@enderror
{{-- Addresses --}}
Addresses
{{-- Right: Financial Settings --}}
Financial Settings
Limit
Enter 0 for no credit limit
days
@if(isset($customer))
is_active) ? 'checked':'' }}>
Inactive customers cannot be selected in new transactions
@endif
Cancel
@endsection @push('scripts') @endpush