@extends('backend.layouts.main') @section('title', 'MLI ATS | Reports: Expiring Reports') @section('content')
@include('backend.share.title', ['title' => 'Reports: Expiring Reports'])
@include('backend.report.expiring-activity.items.header')
@if ($projects->count()) @foreach ($projects as $index => $project) @php $provider = ''; if (!empty($project->joint_provider)) { $provider = $project->joint_provider->jp_code; } if (!empty($project->educational_partner_1)) { if (!empty($provider)) { $provider .= ' / '; } $provider .= $project->educational_partner_1->ep_code; } $cr_code = ''; if (!empty($project->jp_cr_code)) { $cr_code = $project->jp_cr_code; } if (!empty($project->ep_cr_code_1)) { if (!empty($cr_code)) { $cr_code .= ' / '; } $cr_code .= $project->ep_cr_code_1; } $expired_in_days = ''; if (!empty($project->expiration_date)) { $expiration_date = Carbon\Carbon::parse($project->expiration_date); $expired_in_days = $expiration_date->diffInDays(today()); } $managedby = ''; if (!empty($project->managedby)) { $managedby = $project->managedby->initials; } @endphp @endforeach @else @endif
# AID @include('backend.report.expiring-activity.sort-icon', [ 'sort_order' => $next_order, ]) MLIP @include('backend.report.expiring-activity.sort-icon', [ 'sort_order' => $next_order, ]) JP/EP CR Code @include('backend.report.expiring-activity.sort-icon', [ 'sort_order' => $next_order, ]) JP/EP Code Activity Title @include('backend.report.expiring-activity.sort-icon', [ 'sort_order' => $next_order, ]) Type Accred. RELEASE @include('backend.report.expiring-activity.sort-icon', [ 'sort_order' => $next_order, ]) EXPIRE @include('backend.report.expiring-activity.sort-icon', [ 'sort_order' => $next_order, ]) Days To Expiration @include('backend.report.expiring-activity.sort-icon', [ 'sort_order' => $next_order, ]) PM
{{ $index + $projects->firstItem() }}
{{ $project->activity_id }}
{{ $project->project_code }}
{{ $cr_code }}
{{ $provider }}
{!! Str::words($project->activity_title, 2, ' ....') !!}
{!! Str::words($project->activity_type, 2, ' ....') !!}
{{ $project->accreditation_type_4_ipce }}
{{ date('m/d/Y', strtotime($project->start_date)) }}
{{ date('m/d/Y', strtotime($project->expiration_date)) }}
{{ $expired_in_days }}
{{ $managedby }}
No Data Found
@include('backend.share.pagination', ['data' => $projects])
@endsection