@if(($audit->type ?? 'single') === 'quantity_batch')
{{ $audit->count }} Quantities {{ $audit->event }}
@else
{{ $audit->model_type }}@if($audit->item_name) "{{ Str::limit($audit->item_name, 10) }}"@endif {{ $audit->event }}
@endif
@if(($audit->type ?? 'single') === 'quantity_batch')
| Colourway | Size | Qty | @if($audit->event === 'Updated')@endif | |
|---|---|---|---|---|
| {{ Str::limit($qty['line_name'], 12) }} | {{ $qty['size'] }} | @if($audit->event === 'Updated'){{ $qty['old_qty'] ?? '—' }} | {{ $qty['new_qty'] ?? '—' }} | @else{{ $qty['new_qty'] ?? $qty['old_qty'] ?? '—' }} | @endif
@foreach($audit->changes as $change)
@endif
{{ $change['field'] }}:
@if($audit->event !== 'Created')
{{ $change['old'] }}
@endif
{{ $change['new'] }}
@endforeach