@extends('layouts.app')
@section('content')
@include('layouts.top-header', [
'title' => __('Users Report'),
'class' => 'col-lg-7'
])
| # |
{{__('Image')}} |
{{__('Name')}} |
{{__('Email')}} |
{{__('Phone')}} |
{{__('Appointments')}} |
{{__('Registered date')}} |
|
@foreach ($users as $user)
@php
$appointment = 0;
@endphp
| {{$loop->iteration}} |
|
{{$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')}} |
|
@endforeach
@endsection