@vite('resources/css/app.css') @include('sidebar.users_sidebar')

Reports

Monthly Project Report
@foreach($logs as $log) @php $createdDate = \Carbon\Carbon::parse($log->created_at); $deadlineDate = \Carbon\Carbon::parse($log->channel_deadline); // Debugging to ensure correct date values // echo "Created Date: $createdDate, Deadline Date: $deadlineDate
"; $differenceInDays = $deadlineDate->diffInDays($createdDate, false); @endphp @endforeach
Project Employee Name Action Date Completed Deadline Submission status
{{ $log->client_name }} {{ $log->employee_name }}
{{ $log->employee_type }}
{{ $log->Action }} {{ $log->created_at->format('M d, Y h:i:s a') }} {{ \Carbon\Carbon::parse($log->channel_deadline)->format('M d, Y h:i:s a') }} @if($log->Action !== 'Revision completed') @if($log->pr_status === 'Late') {{ $log->pr_status }} @elseif($differenceInDays <= 5) ({{ abs($differenceInDays) }} day/s remaining) @else {{ $log->pr_status }} @endif @else none @endif @if($log->Action !== 'Revision completed') Job Order @else none @endif