@extends('layouts.admin.index') @section('content')

Dashboard

Search Customers
@if(request()->hasAny(['search', 'created_from', 'created_to', 'birthday_month']))
Search results: {{ $customers->total() }} customers found
@endif
Customer Data
@forelse ($customers as $customer) @empty @endforelse
Image First Name Last Name Email Phone Address State Postal Code Created Time Modified Time Birthday Member ID Loyalty Store Credit Balance Cashback Balance Actions
@if($customer->image) Customer Image @else Default Image @endif {{ $customer->firstName }} {{ $customer->lastName }} {{ $customer->email }} {{ $customer->phone }} {{ $customer->address1 }} {{ $customer->address2 }} {{ $customer->state }} {{ $customer->postalCode }} {{ $customer->createdTime ? \Carbon\Carbon::parse($customer->createdTime)->format('Y-m-d H:i:s') : '' }} {{ $customer->modifiedTime ? \Carbon\Carbon::parse($customer->modifiedTime)->format('Y-m-d H:i:s') : '' }} {{ $customer->birthday ? \Carbon\Carbon::parse($customer->birthday)->format('Y-m-d') : '' }} {{ $customer->memberId }} {{ $customer->loyalty }} {{ $customer->storeCreditsBalance }} {{ $customer->cashbackBalance }}
@csrf @method('PATCH')
@csrf @method('DELETE')
No customers found
{{ $customers->appends(request()->query())->links('pagination::bootstrap-4') }}
@endsection