@extends('layouts.admin') @section('content')

Logs for Batch UUID: {{ $batch_uuid }}

@if ($noLogsFound)
No logs found for this Batch UUID.
@else @if (count($logactivities) > 1) @foreach ($logactivities as $logactivity)
{{--
Log ID: {{ $logactivity->id }}
--}}

Log Name: {{ $logactivity->log_name }}

Created At: {{ $logactivity->created_at }}

Log ID: {{ $logactivity->id }}

Description: {{ $logactivity->description }}

Event: {{ $logactivity->event }}

Causer Type: {{ $logactivity->causer_type }}

Subject Type: {{ $logactivity->subject_type }}

@foreach ($logactivity->new_values as $key => $newValue) @endforeach
Field New Old
{{ $key }} {{ $newValue }} {{ $logactivity->old_values[$key] ?? '-' }}
@endforeach @else @php $logactivity = $logactivities->first(); $oldValues = $logactivity->old_values; $newValues = $logactivity->new_values; @endphp
{{--
Log ID: {{ $logactivity->id }}
--}}

Log Name: {{ $logactivity->log_name }}

Created At: {{ $logactivity->created_at }}

Log ID: {{ $logactivity->id }}

Description: {{ $logactivity->description }}

Event: {{ $logactivity->event }}

Causer Type: {{ $logactivity->causer_type }}

Subject Type: {{ $logactivity->subject_type }}

@foreach ($newValues as $key => $newValue) @endforeach
Field New Old
{{ $key }} {{ $newValue }} {{ $oldValues[$key] ?? '-' }}
@endif @endif
@endsection