Customers @if(Gate::allows('style:update') || Gate::allows('order:update') || Gate::allows('finance:update')) @endif @can('customer:create') @endcan
@if(!$hideFilters)
@error('search') {{ $message }} @enderror
@endif
@if (Session::get('message')) @endif @if($errors->all()) @endif
@foreach($customers as $customer) @endforeach
ID Name Country Currency Payment Terms Factored
{{ $customer->id }} {{ $customer->name }} {{ Str::upper($customer->countries->code) }} {{ $customer->currency }} @foreach($customer->customer_payment_terms as $term) {{ $term->percentage }}% @ {{ $term->days }}d @endforeach @can('finance:update') factored ? 'checked' : '' }} wire:click="updateFactored({{ $customer->id }})"> @else {{ $customer->factored ? 'Yes' : 'No' }} @endcan @can('customer:update') @endcan
{{-- Quick New Customer Form --}}
{{-- Auto-open customer edit modal if ID provided via route --}} @if($openCustomerId) @endif {{ $customers->links() }}