@php use App\Models\Cvsat\CvApplication; @endphp
@forelse($applications as $index => $application) @empty @endforelse
S.No Application Id Submitted Date Company Name CV Type Status Action
{{ $applications->firstItem() + $index }} {{ $application->c_appln_id }} {{ formatDate($application->d_create_dt) }} {{ $application->user->name }} CV Services {{ $application->status->dot_action }}
@if (!in_array($application->c_appln_status, ['SAVED', 'PRESUBMITTED'])) @endif @switch($application->c_appln_status) @case('SUBMITTED') @case('RESUBMITTED') @case('PRESCRU_RESUBMITTED') @case('RESCRUTINY') {{--
--}} @if ($application->status->dot_action_type == 'B') @elseif ($application->status->dot_action_type == 'T') {{ $application->status->dot_action ?? 'NA' }} @endif @break @break @case('SCR_VERIFIED_FORWARD') @case('SCR_REVERTED_FORWARD') @if ($application->status->dot_action_type == 'B') @elseif ($application->status->dot_action_type == 'T') {{ $application->status->dot_action ?? 'NA' }} @endif @break @case('PRERESUBMITTED') {{ $application->status->dot_action ?? 'NA' }} @break @case('SCR_VERIFIED_APPR') @case('SCR_REVERTED_APPR') @if ($application->status->dot_action_type == 'B') @php $forwardedFromOfficerDesignation = 'Officer'; $forwardedFrom = $application->latestWorkflow->c_fwd_by; $forwardedFromUsernameArr = explode("_", $forwardedFrom); if (in_array('adg', $forwardedFromUsernameArr)) { $forwardedFromOfficerDesignation = "ADG"; } else if (in_array('dir', $forwardedFromUsernameArr)) { $forwardedFromOfficerDesignation = "Director"; } else if (in_array('ddg', $forwardedFromUsernameArr)) { $forwardedFromOfficerDesignation = "DDG"; } @endphp @elseif ($application->status->dot_action_type == 'T') {{ $application->status->dot_action ?? 'NA' }} @endif @break @case('VERIFIED') @if ($application->status->dot_action_type == 'B') @endif @break @case('REVERTED') @if ($application->status->applicant_action_type == 'B') @elseif ($application->status->applicant_action_type == 'T') {{ $application->status->applicant_action ?? 'NA' }} @endif @break @endswitch
No applications found
@if($applications->hasPages())
{{ $applications->links('pagination::bootstrap-5') }}
@endif
@push('scripts') @endpush