@model IEnumerable<SMS_MVCDTO.Models.DTOs.SalesManagerDTOs.SalesManagerResponseModel>

@{
    ViewData["Title"] = "Home || Sales Manager ";
}


<partial name="_Notification" />



<h1>Sales manager Dashboard</h1>



<div id="">



    <p>
        <a asp-action="Create">Create New</a>
    </p>

    <table class="table table-info">
        <thead>
            <tr>
                <th>S/N</th>

                <th>
                    @Html.DisplayNameFor(model => model.Data.StaffId)
                </th>

                <th>
                    @Html.DisplayNameFor(model => model.Data.FirstName)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Data.LastName)
                </th>

                <th>
                    @Html.DisplayNameFor(model => model.Data.Email)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Data.PhoneNumber)
                </th>

                <th></th>
            </tr>
        </thead>
        <tbody>
            @{
                int serialNumber = 1;
            }
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @serialNumber
                    </td>

                    <td>
                        @Html.DisplayFor(modelItem => item.Data.StaffId)
                    </td>

                    <td>
                        @Html.DisplayFor(modelItem => item.Data.FirstName)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Data.LastName)
                    </td>

                    <td>
                        @Html.DisplayFor(modelItem => item.Data.Email)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Data.PhoneNumber)
                    </td>


                    <td>
                        <a asp-action="Edit" asp-route-staffId="@item.Data.StaffId">Edit</a> |
                        <a asp-action="Details" asp-route-staffId="@item.Data.StaffId">Details</a> |
                        <a asp-action="DeletePreview" asp-route-staffId="@item.Data.StaffId">Delete</a>
                    </td>
                </tr>
                serialNumber++;
            }
        </tbody>
    </table>





</div>


@*
<div class="dropdown">
    <button class="dropbtn"> Manage Attendant</button>
    <div class="dropdown-menu">
        <a asp-controller="Attendant" asp-action="Dashboard"> Dashboard </a>
        <br />
        <a asp-controller="Attendant" asp-action="Create">Add new attendant</a>
        <br />

    </div>
</div>

<div class="dropdown">
    <button class="dropbtn"> Manage Product</button>
    <div class="dropdown-menu">
        <a asp-controller="Product" asp-action="Dashboard"> Dashboard</a>
        <br />
        <a asp-controller="Product" asp-action="Create">Add new product</a>
        <br />
        @* <a asp-controller="Product" asp-action="Index">Manage all products</a>
        <br />
    </div>
</div>

<a asp-controller="Transaction" asp-action="Dashboard">Manage Transactions</a>
<br />
<a asp-controller="Product" asp-action="Dashboard">Manage Inventory</a>
*@
<br />
<br />
<br />