@extends('layouts.adminLayout.dashboardLayout') @section('styles') @endsection @section('content')
{{ Breadcrumbs::render('ChangesLog',$logs) }}

Back
Per page
Reset

@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 @endforeach
# Reference No NTA ID Exam User Type Current Value Update Value Log DateTime Updated By
{{ ++$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 }}
{{ $logs->links('pagination::bootstrap-5') }}
@endsection @section('script') @endsection