@vite(['resources/css/app.css', 'resources/js/app.js'])

@yield('title')

Notifications

@php $notifications = \App\Models\Notification::where('employee_id', Auth::guard('employee')->id()) ->orderBy('created_at', 'desc') ->limit(10) ->get(); @endphp @forelse($notifications as $notification)

{{ $notification->title }}

{{ $notification->message }}

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

@empty

No notifications

@endforelse @if($notifications->count() > 0) @endif
@php $user = Auth::guard('employee')->user(); @endphp
{{ $user->first_name }} {{ $user->last_name }}
{{ $user->employee_id ?? 'Employee' }}
{{ substr($user->first_name, 0, 1) }}{{ substr($user->last_name, 0, 1) }}
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
Something went wrong
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session('error'))
{{ session('error') }}
@endif @yield('content')
@include('layouts.partials.job-notes-popup') @include('layouts.partials.chatbot')