@include('layouts.header')
@include('layouts.sidebar')

Items

@if (session('delete')) @endif @if (session('excelimport')) @endif @if (session('error')) @elseif (session('success')) @endif @if ($errors->has('file')) @endif
@csrf
@if (Auth::user()->is_admin == '1') @else @endif
{{-- @endif --}} Export
{{-- @if (Auth::user()->is_admin == '1' || Auth::user()->type == 'Admin' || Auth::user()->type == 'Warehouse') --}} Download Import CSV Template {{-- @endif --}}
{{-- Permission --}} @php $choosePermission = []; if (auth()->user()->permission) { $decodedPermissions = json_decode(auth()->user()->permission, true); if (json_last_error() === JSON_ERROR_NONE) { $choosePermission = $decodedPermissions; } } @endphp {{-- End Permission --}}
@csrf
@if (Auth::user()->is_admin == '1') @else @endif
@if (in_array('Item Register', $choosePermission) || auth()->user()->is_admin == '1') @endif

Items List

@php $no = 1; @endphp @foreach ($items as $item) @php $no++; @endphp @endforeach
No. Item Image Item Name Category Location လက်လီစျေး လက်ကားစျေး Barcode Expired Date Quantity Bar Code Action
{{ ($items->currentPage() - 1) * $items->perPage() + $loop->iteration }} Item Image Preview {{ $item->item_name }} {{ $item->category }} {{ $item->warehouse->name ?? 'N/A' }} {{ number_format($item->retail_price ?? 0, 2) }} {{ number_format($item->wholesale_price ?? 0, 2) }} {{ $item->barcode }} @if ($item->expired_date) {{ $item->expired_date }} @else No Expired Date @endif @if ($item->quantity <= $item->reorder_level_stock) @if ($item->item_type == 'Service') 0 @else {{ $item->quantity }} @endif @else @if ($item->item_type == 'Service') 0 @else {{ $item->quantity }} @endif @endif Generate @if (in_array('Item Details', $choosePermission) || auth()->user()->is_admin == '1') @endif @if (in_array('Item Edit', $choosePermission) || auth()->user()->is_admin == '1') @endif @if (in_array('Item Delete', $choosePermission) || auth()->user()->is_admin == '1') @endif @if (in_array('Item In/Out', $choosePermission) || auth()->user()->is_admin == '1') In/Out History @endif
Showing {{ $items->firstItem() }} to {{ $items->lastItem() }} of {{ $items->total() }} results
{{ $items->links('pagination::bootstrap-4') }}