@section('page_title', 'Admin Inventory') @section('page_heading', 'Ledger') @section('page_subtitle', '')

Ledger

@foreach($logs as $log) @endforeach
# Substance Type Qty Batch User Reference Notes Date
{{ $loop->iteration }} {{ $log->substance->name ?? '-' }} @if($log->type == 'RECEIVED') Received @elseif($log->type == 'DISPENSED') Dispensed @elseif($log->type == 'DESTROYED') Destroyed @endif @if($log->quantity > 0) +{{ $log->quantity }} @else {{ $log->quantity }} @endif {{ $log->batch->batch_number ?? $log->batch_id }} {{ $log->user->name ?? '-' }} {{ ucfirst($log->reference_type) }} #{{ $log->reference_id }} {{ $log->notes }} {{ $log->performed_at }}
{{ $logs->links('vendor.pagination.custom') }}
@push('scripts') @endpush