{{ $user->name }}

{{ $user->role->name }}

{{--
--}} {{--
First Name
--}} {{--
Jane
--}} {{--
--}} {{--
--}} {{--
Last Name
--}} {{--
Doe
--}} {{--
--}} {{--
--}} {{--
Gender
--}} {{--
Female
--}} {{--
--}}
Phone No.
{{ $user->phone_number }}
{{--
--}} {{--
Current Address
--}} {{--
Beech Creek, PA, Pennsylvania
--}} {{--
--}} {{--
--}} {{--
Permanant Address
--}} {{--
Arlington Heights, IL, Illinois
--}} {{--
--}} {{--
--}} {{--
Birthday
--}} {{--
Feb 06, 1998
--}} {{--
--}}
  • Status @if ($user->status == 1) Active @else Inactive @endif
  • Joined Date {{ $user->created_at->toDateString() }}
  • Last Appointment {{ $appointments->where('status', true)->sortByDesc('date')->where('date', '<=' , \Carbon\Carbon::today()->toDateString() )->first()?->service->name }}
  • Last Appointment Date {{ $appointments->where('status', true)->sortByDesc('date')->first()?->date }}
  • Last Purchase {{ $appointments->where('status', true)->sortByDesc('created_at')->first()?->service->name }}
  • Last Purchase Date {{ $appointments->where('status', true)->sortByDesc('created_at')->first()?->created_at->toDateString() }}
  • Last Purchase Amount ₺ {{ $appointments->where('status', true)->sortByDesc('created_at')->first()?->total }}
  • Total Purchases ₺ {{ $appointments->where('status', true)?->sum('total') }}
  • Last Cancellation {{ $appointments->where('status', false)->sortByDesc('created_at')->first()?->service->name}}