@extends('layouts.master-layouts') @section('title') {{ __('Notification list') }} @endsection @section('content') @component('components.breadcrumb') @slot('title') Notification List @endslot @slot('li_1') Dashboard @endslot @slot('li_2') Notification @endslot @endcomponent
@forelse ($notification as $item)
user-pic
@if ($item->notification_type_id == 4)
{{ $role == 'patient' ? '' : $item->invoice_user->patient->first_name . ' ' . $item->invoice_user->patient->first_name . '`s ' }} {{ $item->title }} by @if ($item->user->roles[0]->slug == 'doctor') user->id) }}>{{ $item->user->first_name . ' ' . $item->user->last_name }} @elseif ($item->user->roles[0]->slug == 'patient') user->id) }}>{{ $item->user->first_name . ' ' . $item->user->last_name }} @elseif ($item->user->roles[0]->slug == 'receptionist') user->id) }}>{{ $item->user->first_name . ' ' . $item->user->last_name }} @else {{ $item->user->first_name . ' ' . $item->user->last_name }} @endif

invoice date: {{ $item->invoice_user->created_at }}

@else
{{ $role == 'patient' ? '' : $item->appointment_user->patient->first_name . ' ' . $item->appointment_user->patient->last_name . '`s ' }} {{ $item->title }} by @if ($item->user->roles[0]->slug == 'doctor') user->id) }}>{{ $item->user->first_name . ' ' . $item->user->last_name }} @elseif ($item->user->roles[0]->slug == 'patient') user->id) }}>{{ $item->user->first_name . ' ' . $item->user->last_name }} @elseif ($item->user->roles[0]->slug == 'receptionist') user->id) }}>{{ $item->user->first_name . ' ' . $item->user->last_name }} @else {{ $item->user->first_name . ' ' . $item->user->last_name }} @endif

Apppointment date: {{ $item->appointment_user->appointment_date . ', time: ' . $item->appointment_user->timeSlot->from . ' to ' . $item->appointment_user->timeSlot->to }}

@endif

{{ $item->created_at->diffForHumans() }}

@empty

No matching records found

@endforelse
{{ $notification->links() }}
@endsection @section('script') @endsection