@extends('layouts.portal') @section('title', __('Items')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Items') }}

{{ __('Products and services sold, purchased or consumed.') }}

{{ __('New item') }}
@if(session('success'))
{{ session('success') }}
@endif
@forelse($items as $item) @empty @endforelse
{{ __('SKU') }} {{ __('Name') }} {{ __('Brand') }} {{ __('Type') }} {{ __('Dispatch policy') }} {{ __('Unit') }} {{ __('Status') }}
{{ $item->sku }} {{ $item->name }} {{ $item->brand?->name ?? '—' }} {{ $item->isService() ? __('Service') : __('Stockable') }} {{ $item->isService() ? '—' : strtoupper($item->dispatch_policy) }} {{ $item->baseUom?->code }} {{ $item->is_active ? __('Active') : __('Inactive') }}
{{ __('No items found.') }}
{{ $items->links() }}
@endsection