@extends('layouts/microfin_layout') @section('title', '| Periodical Progress Report') @section('content') @include('microfin/reports/branchManagerReportViews/BranchManagerReportAjax')
{{-- --}}

{{-- Periodical Progress Report --}}

@foreach ($dateRange as $date) @endforeach @foreach ($getCurrentOfficers as $key => $employeeCollection) @php $branchInfo = DB::table('gnr_branch') ->select('branchCode', 'name') ->where('id', $employeeCollection->branch_id_fk) ->first(); $employeepositionIdFk = DB::table('hr_emp_org_info') ->where('emp_id_fk', $employeeCollection->emp_id_fk) ->pluck('position_id_fk') ->first(); $employeeDesignation = DB::table('hr_settings_position') ->where('id', $employeepositionIdFk) ->pluck('name') ->first(); $employeeInfo = DB::table('hr_emp_general_info') ->where('id', $employeeCollection->emp_id_fk) ->select('emp_id', 'emp_name_english') ->first(); $employJoiningDate = DB::table('hr_emp_org_info') ->where('emp_id_fk', $employeeCollection->emp_id_fk) ->select('joining_date') ->value('joining_date'); @endphp @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 @endforeach @endforeach
Sl No Branch Designation Employee Name Joining Date {{ \Carbon\Carbon::parse($date)->format('d-M') }}
{{ $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') }} {{ $data ? $data->status : 0 }}
@endsection