customerQueries = $customerQueries; } public function updatedSearch(): void { $this->resetPage(); } /** * @return LengthAwarePaginator */ #[Computed] public function customers(): LengthAwarePaginator { return $this->customerQueries->paginate($this->search); } public function render(): mixed { return $this->view()->title(__('customers.title')); } }; ?>
{{ __('customers.title') }} {{ __('customers.new') }}
@if (session('status')) @endif {{ trans_choice('customers.result_count', $this->customers->total(), ['count' => $this->customers->total()]) }} @if ($this->customers->isEmpty()) {{ __('customers.empty') }} @else {{ __('customers.fields.name') }} {{ __('customers.fields.type') }} {{ __('customers.fields.business_id') }} {{ __('customers.edit') }} @foreach ($this->customers as $customer) {{ $customer->name }} {{ __('customers.types.'.$customer->type->value) }} {{ $customer->businessId ?? '–' }} {{ __('customers.edit') }}: {{ $customer->name }} @endforeach @endif