@extends('layouts.app') @section('title', __('inventory.transactions')) @section('content')

{{ __('inventory.transactions') }}

+ {{ __('inventory.new_transaction') }}
@forelse($transactions as $tr) @empty @endforelse
{{ __('inventory.transaction_type') }} {{ __('inventory.name') }} {{ __('warehouse.warehouses') }} {{ __('inventory.quantity') }} {{ __('inventory.date') }} {{ __('common.actions') }}
@php $ttk = 'inventory.type_' . $tr->type; $ttl = __($ttk); if ($ttl === $ttk) $ttl = $tr->type; @endphp {{ $ttl }} {{ $tr->item?->name ?? '-' }} {{ $tr->warehouse?->name ?? '-' }} {{ $tr->quantity }} {{ $tr->date ? calendar_date($tr->date) : '-' }}
{{ __('common.view') }}
@csrf @method('DELETE')
{{ __('inventory.no_transactions') }}
{{ $transactions->withQueryString()->links() }}
@endsection