@extends('layouts/microfin_layout') @section('title', '| Periodical Progress Report') @section('content') @include('microfin/reports/branchManagerReportViews/BranchManagerReportAjax')
| Sl No | Branch | Designation | Employee Name | Joining Date | @foreach ($dateRange as $date){{ \Carbon\Carbon::parse($date)->format('d-M') }} | @endforeach
| {{ $loop->iteration }} | {{ str_pad($branchInfo->branchCode, 3, 0, STR_PAD_LEFT) }}-{{ $branchInfo->name }} | {{ $employeeDesignation }} | {{ strtok($employeeInfo->emp_id, '-') }}-{{ $employeeInfo->emp_name_english }} | {{ \Carbon\Carbon::parse($employJoiningDate)->format('Y-m-d') }} | @foreach ($dateRange as $date) @php // Format the date if needed to match actionDate format $formattedDate = \Carbon\Carbon::parse($date)->format('Y-m-d'); // Get the data based on emp_id_fk, branch_id_fk, and actionDate $data = optional( $groupCollectionData[$employeeCollection->emp_id_fk][ $employeeCollection->branch_id_fk ] ?? collect(), ) ->where('actionDate', $formattedDate) ->first(); @endphp{{ $data ? $data->status : 0 }} | @endforeach