@extends('app_admin') @section('title', $user->first_name.' '.$user->last_name.' | Luxury Concierge') @section('content')
@if($user->hasRole('client')) @endif
Total of requests

{{ $user->active_client_requests()->count() }}

@if($user->is_admin() && $user->rateable)
Average Rating
{{ $user->concierge_rating ? number_format($user->concierge_rating, 1, '.', '') : 'No rating' }}
@endif
Last Time Online
@if($user->online_status == "offline")

@else

{{ $user->online_status }}

@endif
@if($user->family->count() >= 1)

Family

@foreach($user->family as $family_member)

{{ $family_member->name }}

{{ $family_member->gender }}
{{ $family_member->family_member }}
{{ $family_member->date_of_birth }}
Notes

{{ strlen($family_member->notes) !== 0 ? $family_member->notes : "There aren't any notes added. Please add any necessary notes under the Edit section on this page." }}

@endforeach
@endif @if($user->pets->count() >= 1)

Pets

@foreach($user->pets as $pet)

{{ $pet->name }}

{{ $pet->type }} / {{ $pet->breed }}
{{ $pet->color }}
Notes

{{ strlen($pet->notes) !== 0 ? $pet->notes : "There aren't any notes added. Please add any necessary notes under the Edit section on this page." }}

@endforeach
@endif @if($user->vehicles->count() >= 1)

Vehicles

@foreach($user->vehicles as $vehicle)

{{ $vehicle->type }}

{{ $vehicle->model }} / {{ $vehicle->color }} / {{ $vehicle->year }}
Notes

{{ strlen($vehicle->notes) !== 0 ? $vehicle->notes : "There aren't any notes added. Please add any necessary notes under the Edit section on this page." }}

@endforeach
@endif @if($user->hasRole('client'))
@endif @if($user->hasRole('client'))
@if($user->active_client_requests()->count()) @foreach($user->active_client_requests()->sortByDesc('created_at') as $request)
@if(!$request->archived) @if($request->status)
@else
@endif @else
@endif
{{ $request->description }}
@endforeach @else

There are no requests.

@endif
No notes have been added
@{{ note.concierge.first_name }}
@{{ note.text }}
@{{ note.created_at | amDateFormat:'MM/DD/YYYY HH:mm A' }}
@endif
@endsection @section('script') @endsection