{{ __('Cancel') }}
@auth
@hasrole('Screening Officer')
@php
$stages = [App\Models\Application::STAGE_SO];
$show = in_array($application->stage, $stages);
@endphp
@if ($show)
@endif
@elsehasanyrole(['Junior Evaluator', 'Senior Evaluator'])
@php
$stages = [App\Models\Application::STAGE_JE, App\Models\Application::STAGE_SE];
$show = in_array($application->stage, $stages);
@endphp
@if ($show)
@if ($application->is_notification_sent != true)
{{ __('Completion Notification') }}
@endif
{{ __('Evaluate') }}
@endif
@else
@if ($application->certificate_no == null)
@php
$show = false;
if (auth()->user()->hasRole('Project Leader')) {
$show = $application->stage == App\Models\Application::STAGE_PL;
$role = 'project-leader';
} elseif (auth()->user()->hasRole('Project Director')) {
$show = $application->stage == App\Models\Application::STAGE_PD;
$role = 'project-director';
} else {
$show = $application->stage == App\Models\Application::STAGE_AA;
$role = 'admin';
}
@endphp
@if ($show)
{{ __('Proceed') }}
@endif
@endif
@endhasrole
@if ($application->certificate_no != null)
@hasrole('administrator')
@if($application->status == 'certified')
{{ __('Un-Publish') }}
@elseif($application->status == 'unpublished')
{{ __('Re-Publish') }}
@endif
@endhasrole
@if ($application->myhijau_exp_date < now())
{{ __('Renew') }}
@endif
@endif
@endauth
@include('pages.apps.application.partials.incomplete-modal')
@include('pages.apps.application.partials.withdraw-modal')
@include('pages.apps.application.partials.confirmation-modal')
@include('pages.apps.application.partials.drop-modal')
@push('scripts')
@endpush