@extends('layouts.app') @section('title', __('app.customers') . ' - SEU CRM') @section('content')

{{ __('app.customers') }}

{{ __('app.add_customer') }}
@if(session('success')) @endif
{{ __('app.customer_management') }}
@csrf
{{ __('app.export') }}
@if(request('search')) {{ __('app.clear') }} @endif
@forelse($customers as $customer) @empty @endforelse
{{ __('app.name') }} {{ __('app.email') }} {{ __('app.phone') }} {{ __('app.company') }} {{ __('app.status') }} {{ __('app.created') }} {{ __('app.actions') }}
{{ substr($customer->name, 0, 1) }} {{ $customer->name }}
{{ $customer->email }} {{ $customer->phone }} {{ $customer->company ?? __('app.not_available') }} {{ ucfirst($customer->status) }} {{ $customer->created_at->format('M d, Y') }}
@csrf @method('DELETE')

{{ __('app.no_customers_found') }}

{{ __('app.showing') }} {{ $customers->firstItem() ?? 0 }} {{ __('app.to') }} {{ $customers->lastItem() ?? 0 }} {{ __('app.of') }} {{ $customers->total() }} {{ __('app.results') }}
{{ $customers->links() }}
@endsection @push('scripts') @endpush