@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Log') @section('css') @endsection @section('content') @php $afters = json_decode($log->json_after); @endphp
By User : {{@$log->user->nama}}
Modul : {{@$log->modul}}
Time : {{@$log->created_at}}
Before
@if ($data_from) @if (is_array($data_from)) @foreach ($data_from as $h1=>$b1) @if (is_array($b1)) @foreach ($b1 as $h2=>$b2 ) @if (is_array($b2)) @foreach ($b2 as $h3=>$b3) @if (is_array($b3)) @foreach ($b3 as $h4=>$b4) {{$h4}} : {{$b4}}
@endforeach @else {{$h3}} : {{$b3}}
@endif @endforeach @else {{$h2}} : {{$b2}}
@endif @endforeach @else {{$h1}} : {{$b1}}
@endif @endforeach @else {{$data_from}}
@endif @else
( --- Kosong --- )
@endif
After
@if ($data_after) @if (is_array($data_after)) @foreach ($data_after as $h1=>$b1) @if (is_array($b1)) @foreach ($b1 as $h2=>$b2 ) @if (is_array($b2)) @foreach ($b2 as $h3=>$b3) @if (is_array($b3)) @foreach ($b3 as $h4=>$b4) {{$h4}} : {{$b4}}
@endforeach @else {{$h3}} : {{$b3}}
@endif @endforeach @else {{$h2}} : {{$b2}}
@endif @endforeach @else {{$h1}} : {{$b1}}
@endif @endforeach @else {{$data_after}} @endif @else
( --- Kosong --- )
@endif
@endsection @section('js') @endsection