@yield('page-title','Dashboard')
@php $pending = auth()->check() ? (\App\Models\PurchaseRequest::where('status','pending')->count() + \App\Models\StoreReleaseVoucher::where('status','pending')->count() + \App\Models\LeaveRequest::where('status','pending')->count()) : 0; @endphp @if($pending > 0){{ $pending }}@endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(!empty($errors) && $errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif @yield('content')