@extends('layouts.game') @section('title', 'Inventory') @section('game-content')

Inventory

Equip weapons and armor, or use consumables.

@if($inventory->isEmpty())

Your inventory is empty.

@else
@foreach($inventory->groupBy('item.type') as $type => $items)

{{ ucfirst($type) }}s ({{ $items->sum('quantity') }})

@foreach($items as $item)

{{ $item->item->name }}

x{{ $item->quantity }}

@if($item->equipped) Equipped @endif
@if($item->item->description)

{{ Str::limit($item->item->description, 80) }}

@endif
@if($item->item->attack_bonus > 0)
⚔️ +{{ $item->item->attack_bonus }} Attack
@endif @if($item->item->defense_bonus > 0)
🛡️ +{{ $item->item->defense_bonus }} Defense
@endif @if($item->item->health_bonus > 0)
❤️ +{{ $item->item->health_bonus }} Health
@endif @if($item->item->energy_bonus > 0)
⚡ +{{ $item->item->energy_bonus }} Energy
@endif
@if($item->item->canEquip()) @if($item->equipped)
@csrf
@else
@csrf
@endif @endif @if($item->item->canUse())
@csrf
@endif
@csrf
@endforeach
@endforeach
@endif
@endsection