@extends('hotel_workspace.layout') @section('hotel-content')

{{ request('kind','consumable')==='asset'?'Fixed Assets':'Consumables' }}

@if(auth()->user()->hasPermission('hotel_store.manage'))@endif
ConsumablesFixed Assets

{{ request('kind','consumable')==='asset' ? 'Fixed assets belong to the business and are reused, such as beds, chairs and bedsheets.' : 'Consumables are supplies used in managing the rooms, such as tissues, soap and cleaning materials.' }}

Total cost in store: SSP {{ number_format($items->sum(fn($p)=>(float)$p->stock_quantity*(float)$p->buying_price),2) }}
@forelse($items as $item)@empty@endforelse
ItemTypeIn storeBuying price (SSP)Total Cost (SSP)Stock Controls
{{ $item->name }}{{ $item->kind==='asset'?'Fixed asset':'Consumable' }}{{ number_format($item->stock_quantity,2) }}{{ number_format($item->buying_price,2) }}{{ number_format($item->stock_quantity*$item->buying_price,2) }}@if(auth()->user()->hasPermission('hotel_store.manage'))
@if($item->kind==='asset')@endif @include('hotel_workspace.record_actions',['recordType'=>'product','recordId'=>$item->id,'recordModule'=>'hotel-store'])
@endif
{{ request('kind','consumable')==='asset'?'Add your fixed assets to get started.':'Add your consumables to get started.' }}

Stock History

@forelse($movements as $m)@empty@endforelse
DateItemActivityRoomQuantityStore balanceStaff / Note
{{ $m->created_at }}{{ $m->name }}{{ ['receive'=>'Stock received','adjust'=>'Stock adjusted','dispatch'=>'Dispatched to room','return'=>'Returned from room'][$m->action] }}{{ $m->room_no ?: '—' }}{{ number_format($m->quantity,2) }}{{ number_format($m->after_quantity,2) }}{{ $m->staff }}
{{ $m->note }}
No stock movements yet.
{{ $movements->links() }}
@if(request('kind','consumable')==='asset')

Assets in Rooms

@forelse($allocations as $allocation)@empty@endforelse
ItemRoomQuantity
{{ $allocation->name }}{{ $allocation->room_no }}{{ number_format($allocation->quantity,2) }}
No assets assigned to rooms.
@endif @include('hotel_workspace.item_form',['storeKind'=>request('kind','consumable')])

Stock

@csrf
@endsection @push('scripts')@endpush