@extends('admin.layout_admin.main') @section('css') @endsection @section('content')
Lịch hẹn khám chưa đọc
Quản lý lịch hẹn khám / Lịch hẹn chưa đọc
@can('xoa-lich-hen-kham') @endcan
@if ($appointments->count() > 0)
@foreach ($appointments as $appointment) @endforeach
Người đăng ký Email Người khám/th> Chuyên khoa Bác sĩ Thời gian Xử lý
{{ $appointment->user->name }} {{ $appointment->user->email }} {{ $appointment->patient_name }} {{ $appointment->department->name }} {{ $appointment->doctor->name }} @php $diffInDays = $appointment->created_at->diffInDays(now()); @endphp {{ $diffInDays > 15 ? $appointment->created_at->format('H:i d/m/Y') : $appointment->created_at->diffForHumans() }}
@if ($appointment->is_viewed == 0) @elseif($appointment->is_viewed == 1) @endif @can('xem-chi-tiet-lich-hen-kham') @endcan @can('xoa-lich-hen-kham')
@method('DELETE') @csrf
@endcan
@else

Chưa có lịch hẹn khám nào!

@endif
{{ $appointments->links() }}
@endsection @section('js') @endsection