| {{ $index + 1 }} |
@if (!empty($log->product_image))
@else
-
@endif
|
{{ $log->product_name }} |
{{-- วันที่เพิ่ม / จำนวนที่เพิ่ม --}}
@if ($log->action_type == 'add')
{{ \Carbon\Carbon::parse($log->created_at)->format('d/m/Y H:i') }}
@elseif($log->action_type == 'delete')
{{ \Carbon\Carbon::parse($log->created_at)->format('d/m/Y H:i') }}
@else
-
@endif
|
@if ($log->action_type == 'add')
{{ $log->quantity }}
@elseif($log->action_type == 'delete')
{{ $log->quantity }}
@else
-
@endif
|
{{-- วันที่ลบ / จำนวนที่ลบ --}}
@if ($log->action_type == 'remove' || $log->action_type == 'delete')
{{ \Carbon\Carbon::parse($log->created_at)->format('d/m/Y H:i') }}
@else
-
@endif
|
@if ($log->action_type == 'remove' || $log->action_type == 'delete')
{{ $log->quantity }}
@else
-
@endif
|
@empty