| 1 | @model IEnumerable<KernelRecordsMVC.Application.ViewModels.TopSellerViewModel>
|
|---|
| 2 |
|
|---|
| 3 | @{
|
|---|
| 4 | ViewData["Title"] = "Top Sellers";
|
|---|
| 5 | }
|
|---|
| 6 |
|
|---|
| 7 | <div class="top-sellers-page">
|
|---|
| 8 |
|
|---|
| 9 | <div class="top-sellers-header">
|
|---|
| 10 |
|
|---|
| 11 | <span class="page-eyebrow">
|
|---|
| 12 | KERNEL RECORDS
|
|---|
| 13 | </span>
|
|---|
| 14 |
|
|---|
| 15 | <h1>Top Sellers</h1>
|
|---|
| 16 |
|
|---|
| 17 | <p>
|
|---|
| 18 | The records our customers are buying the most.
|
|---|
| 19 | </p>
|
|---|
| 20 |
|
|---|
| 21 | </div>
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | @if (!Model.Any())
|
|---|
| 25 | {
|
|---|
| 26 | <div class="no-sales-data">
|
|---|
| 27 |
|
|---|
| 28 | <div class="empty-store-icon">
|
|---|
| 29 | ♪
|
|---|
| 30 | </div>
|
|---|
| 31 |
|
|---|
| 32 | <h2>No sales yet</h2>
|
|---|
| 33 |
|
|---|
| 34 | <p>
|
|---|
| 35 | Top sellers will appear here once orders are completed.
|
|---|
| 36 | </p>
|
|---|
| 37 |
|
|---|
| 38 | </div>
|
|---|
| 39 | }
|
|---|
| 40 | else
|
|---|
| 41 | {
|
|---|
| 42 | <div class="release-grid">
|
|---|
| 43 |
|
|---|
| 44 | @{
|
|---|
| 45 | var position = 1;
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | @foreach (var item in Model)
|
|---|
| 49 | {
|
|---|
| 50 | <article class="release-card">
|
|---|
| 51 |
|
|---|
| 52 | <a asp-controller="Release"
|
|---|
| 53 | asp-action="Details"
|
|---|
| 54 | asp-route-id="@item.ReleaseId"
|
|---|
| 55 | class="release-card-cover">
|
|---|
| 56 |
|
|---|
| 57 | @if (!string.IsNullOrWhiteSpace(item.CoverPhoto))
|
|---|
| 58 | {
|
|---|
| 59 | <img src="@item.CoverPhoto"
|
|---|
| 60 | alt="@item.ReleaseTitle" />
|
|---|
| 61 | }
|
|---|
| 62 | else
|
|---|
| 63 | {
|
|---|
| 64 | <div class="release-no-cover">
|
|---|
| 65 | <span>♪</span>
|
|---|
| 66 | </div>
|
|---|
| 67 | }
|
|---|
| 68 |
|
|---|
| 69 | <span class="release-type-badge">
|
|---|
| 70 | #@position
|
|---|
| 71 | </span>
|
|---|
| 72 |
|
|---|
| 73 | </a>
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | <div class="release-card-body">
|
|---|
| 77 |
|
|---|
| 78 | <div class="release-card-meta">
|
|---|
| 79 |
|
|---|
| 80 | <span>
|
|---|
| 81 | @item.Format
|
|---|
| 82 | </span>
|
|---|
| 83 |
|
|---|
| 84 | <span>
|
|---|
| 85 | @item.SoldQuantity sold
|
|---|
| 86 | </span>
|
|---|
| 87 |
|
|---|
| 88 | </div>
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | <h2>
|
|---|
| 92 |
|
|---|
| 93 | <a asp-controller="Release"
|
|---|
| 94 | asp-action="Details"
|
|---|
| 95 | asp-route-id="@item.ReleaseId">
|
|---|
| 96 |
|
|---|
| 97 | @item.ReleaseTitle
|
|---|
| 98 |
|
|---|
| 99 | </a>
|
|---|
| 100 |
|
|---|
| 101 | </h2>
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | <p class="release-card-artist">
|
|---|
| 105 | @item.ArtistName
|
|---|
| 106 | </p>
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 | <div class="release-card-bottom">
|
|---|
| 110 |
|
|---|
| 111 | <div class="release-starting">
|
|---|
| 112 |
|
|---|
| 113 | Price
|
|---|
| 114 |
|
|---|
| 115 | <strong>
|
|---|
| 116 | @item.Price.ToString("C")
|
|---|
| 117 | </strong>
|
|---|
| 118 |
|
|---|
| 119 | </div>
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 | <a asp-controller="Release"
|
|---|
| 123 | asp-action="Details"
|
|---|
| 124 | asp-route-id="@item.ReleaseId"
|
|---|
| 125 | class="store-button primary small">
|
|---|
| 126 |
|
|---|
| 127 | View
|
|---|
| 128 |
|
|---|
| 129 | </a>
|
|---|
| 130 |
|
|---|
| 131 | </div>
|
|---|
| 132 |
|
|---|
| 133 | </div>
|
|---|
| 134 |
|
|---|
| 135 | </article>
|
|---|
| 136 |
|
|---|
| 137 | position++;
|
|---|
| 138 | }
|
|---|
| 139 |
|
|---|
| 140 | </div>
|
|---|
| 141 | }
|
|---|
| 142 |
|
|---|
| 143 | </div> |
|---|