@yield('title')
  • @if (Auth::user()->unreadNotifications->count() > 0) {{Auth::user()->unreadNotifications->count()}} @endif

    Notifications

    @if (Auth::user()->notifications->count() > 0) @foreach (Auth::user()->top10notifications as $notification)
    @if (Auth::user()->isMD() && \App\Models\Task::find($notification->data["task_id"])->payment_status == "Pending") id}}" style="color: inherit;"> @elseif(Auth::user()->isFinance() && \App\Models\Task::find($notification->data["task_id"])->payment_status == "Approved") id}}" style="color: inherit;"> @else id}}" style="color: inherit;"> @endif
    profile_photo_url }}" alt="{{ \App\Models\User::find($notification->data["notification_from"])->name }}" />
    {{$notification->data["title"]}}
    {{$notification->data["message"]}}
    @endforeach
    View All
    @else
    No more notifications
    @endif
  • {{ Auth::user()->name }}
    @csrf Log out