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

{{ __($title ?? 'Stock & Expiry Management') }}

{{ __($subtitle ?? 'Manage inventory and monitor expiry dates across all machines') }}

@foreach ($history as $item) @endforeach @if($history->isEmpty()) @endif
{{ __('Machine Information') }} {{ __('Creation Time') }} {{ __('Picked up Time') }} {{ __('Command Type') }} {{ __('Operator') }} {{ __('Status') }}
{{ $item->machine->name }}
{{ $item->machine->serial_no }}
{{ $item->created_at->format('Y/m/d') }} {{ $item->created_at->format('H:i:s') }}
@if($item->executed_at)
{{ $item->executed_at->format('Y/m/d') }} {{ $item->executed_at->format('H:i:s') }}
@else - @endif
@if($item->note) @endif
{{ mb_substr($item->user ? $item->user->name : __('System'), 0, 1) }}
{{ $item->user ? $item->user->name : __('System') }}

{{ __('No records found') }}

{{ $history->appends(request()->query())->links('vendor.pagination.luxury') }}
{{ __('Machine Information') }} {{ __('Status') }} {{ __('Alerts') }} {{ __('Last Sync') }} {{ __('Actions') }}

{{ __('Total Slots') }}
{{ __('Low Stock') }}
{{ __('Expired') }}
{{ __('Warning') }}
{{ __('Normal') }}
{{ __('Loading Cabinet...') }}
@endsection