<div class="item"
     ondragover="event.preventDefault();"
     draggable="true"
     @ondragstart="@OnDragStart"
     @ondrop="@OnDrop"
     @ondragenter="@OnDragEnter"
     @ondragleave="@OnDragLeave"
     @ondragend="@OnDragEnd"
     oncontextmenu="return false;">

    @if (Item != null)
    {
        if (NoDrop)
        {
            @if (!string.IsNullOrWhiteSpace(Item.ImageBase64))
            {   
                <img src="data:image/png;base64, @(Item.ImageBase64)" class="img-thumbnail" title="@Item.DisplayName" alt="@Item.DisplayName" style="min-width: 64px; max-width: 64px " />
            }
            else
            {
                <img src="images/default.png" class="img-thumbnail" title="@Item.DisplayName" alt="@Item.DisplayName" style="max-width: 64px" />
            }
        }
        else
        {
            @Item.DisplayName
                <br/>
            @NbItem
        }

    }
    <!--It was a choice not to write empty when the InventoryItem is empty because it looks better than way and it ressembles more the game-->
</div>