@page "/tickets"

<PageTitle>Tickets</PageTitle>

<h1>Tickets list</h1>

This is the ticket list of users.

<div>
    <NavLink class="btn btn-primary" href="tickets/add" Match="NavLinkMatch.All">
        <i class="fa fa-plus"></i> Ajouter
    </NavLink>
</div>


@* <DataGrid TItem="Tickets"
          Data="@ticket"
          PageSize="int.MaxValue"
          Responsive>
    <DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="#" />
    <DataGridColumn TItem="Item" Field="@nameof(Item.Username)" Caption="Display name" />
    <DataGridColumn TItem="Item" Field="@nameof(Item.Nom)" Caption="Stack size" />
    <DataGridColumn TItem="Item" Field="@nameof(Item.Prenom)" Caption="Maximum durability" />
    <DataGridColumn TItem="Item" Field="@nameof(Item.Contexte)" Caption="Enchant categories"/>
    <DataGridColumn TItem="Item" Field="@nameof(Item.Description)" Caption="Enchant categories"/>
    <DataGridColumn TItem="Item" Field="@nameof(Item.Urgence)" Caption="Enchant categories"/>
    <DataGridColumn TItem="Item" Field="@nameof(Item.isCheck)" Caption="" />
    <DataGridColumn TItem="Item" Field="" Caption="Check" />
        <DisplayTemplate>
            @(string.Join(", ", ((Item)context).EnchantCategories))
        </DisplayTemplate>
    </DataGridColumn>
    <DataGridColumn TItem="Item" Field="@nameof(Item.RepairWith)" Caption="Repair with">
        <DisplayTemplate>
            @(string.Join(", ", ((Item)context).RepairWith))
        </DisplayTemplate>
    </DataGridColumn>
    <DataGridColumn TItem="Item" Field="@nameof(Item.CreatedDate)" Caption="Created date" DisplayFormat="{0:d}" DisplayFormatProvider="@System.Globalization.CultureInfo.GetCultureInfo("fr-FR")" />
</DataGrid> *@