# |
Reference No |
NTA ID |
Exam |
User Type |
Current Value |
Update Value |
Log DateTime |
Updated By |
@php
$i = 0;
@endphp
@foreach ($logs as $log)
@php
$userType = '-';
if (
$log->table_name ==
'[' .
config('constants.CityCoordinatorOfflineTbl') .
']'
) {
$userType = 'City Coordinator';
} elseif (
$log->table_name ==
'[' . config('constants.TABillHeaderTbl') . ']'
) {
$userType = 'Observer';
} elseif (
$log->table_name ==
'[' . config('constants.CentreBillTbl') . ']'
) {
$userType = 'Center superintendent';
}
$current_value_json = json_decode(
$log->current_value,
true,
);
$current_value = implode(
'
',
array_map(
fn($key, $value) => "$key=$value",
array_keys($current_value_json[0]),
$current_value_json[0],
),
);
$update_value_json = json_decode($log->update_value, true);
$update_value = implode(
'
',
array_map(
fn($key, $value) => "$key=$value",
array_keys($update_value_json),
$update_value_json,
),
);
@endphp
{{ ++$i }} |
{{ $log->reference_no }} |
{{ $log->observer_id }} |
{{ getExamNameByExamType($log->exam_type) }} |
{{ $userType }} |
{!! $current_value !!} |
{!! $update_value !!} |
{{ date('d-m-Y h:i:s', strtotime($log->created_at)) }} |
{{ $log->role_type }} |
@endforeach
{{ $logs->links('pagination::bootstrap-5') }}