@extends('adminlte::page')
@section('title', config('app.name'))
@section('content_header')
{{config('app.name')}} / {{__('messages.dashboard')}}
@stop
@section('js')
@endsection
@section('content')
@if (!$vacancies->isEmpty())
@foreach($vacancies as $vacancy)
@if (is_null($vacancy->vacancyFullDescription))
{{__('messages.opening_nodetails')}}
{{__('messages.opening_nodetails_exp')}}
@else
{!! $vacancy->vacancyFullDescription !!}
{{__('messages.last_updated')}} @ {{ $vacancy->updated_at }}
@endif
@endforeach
@endif
{{__('messages.welcome_back')}} {{ Auth::user()->name }}!
{{__('messages.eligibility_status', ['badgeStatus' => ' ' . ($isEligibleForApplication) ? __('messages.eligible') : __('messages.ineligible') .''])}}
@if (!Auth::user()->isStaffMember())
{{ $openApplications ?? 0 }}
{{__('messages.ongoing_apps')}}
{{ $deniedApplications ?? 0 }}
{{__('messages.denied_apps')}}
@else
{{ $totalUserCount }}
{{__('messages.users_staff')}}
@if (Auth::user()->hasRole('admin'))
@else
@endif
{{ $totalDenied }}
{{__('messages.denied_apps')}}
@if (Auth::user()->hasRole('admin'))
@else
@endif
{{ $totalNewApplications }}
{{__('messages.new_apps')}}
@if (Auth::user()->hasRole('admin'))
@else
@endif
{{ $totalPeerReview }}
{{__('messages.v_backlog')}}
@endif
@if ($isEligibleForApplication && !Auth::user()->isStaffMember())
@endif
@if (!$vacancies->isEmpty() && $isEligibleForApplication && !Auth::user()->isStaffMember())
@foreach($vacancies as $vacancy)
{{$vacancy->vacancyDescription}}
@endforeach
@endif
@stop
@section('footer')
@include('breadcrumbs.dashboard.footer')
@stop