@extends('layouts.app') @section('content') @include('layouts.top-header', [ 'title' => __('Users Report'), 'class' => 'col-lg-7' ])
{{__('Users Report')}}
@csrf
@if($errors->any())

{{$errors->first()}}

@else

@endif
@foreach ($users as $user) @php $appointment = 0; @endphp @endforeach
# {{__('Image')}} {{__('Name')}} {{__('Email')}} {{__('Phone')}} {{__('Appointments')}} {{__('Registered date')}}
{{$loop->iteration}} Image placeholder {{$user->name}} {{$user->email}} {{$user->code}}{{$user->phone}} @foreach ($booking as $book) @if ($book->user_id == $user->id) @php $appointment++; @endphp @endif @endforeach {{$appointment}} {{\Carbon\Carbon::parse($user->created_at)->format('Y-m-d')}}
@endsection