You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Index.cshtml 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @using Karsha_Site.Application.Services.Products.Queries.GetProductForSite;
  2. @model ResultProductForSiteDto;
  3. @{
  4. ViewData["Title"] = "Index";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. }
  7. <!--Page Title-->
  8. <section class="page-title">
  9. <div class="auto-container">
  10. <!-- <h2>محصولات ما</h2>
  11. <ul class="page-breadcrumb">
  12. <li><a href="index-2.html">خانه</a></li>
  13. <li>محصولات</li>
  14. </ul> -->
  15. </div>
  16. </section>
  17. <!--End Page Title-->
  18. <!-- Projects Page Section -->
  19. <section class="projects-page-section">
  20. <div class="auto-container">
  21. <div class="sec-title">
  22. <div class="title-inner">
  23. <div class="title">محصولات ما</div>
  24. <h2>گروه کارخانجات دنیای فلز </h2>
  25. </div>
  26. </div>
  27. <!--MixitUp Galery-->
  28. <div class="mixitup-gallery">
  29. <!--Filter-->
  30. <div class="filters text-center clearfix">
  31. <ul class="filter-tabs filter-btns clearfix">
  32. @{
  33. string activeClass = "";
  34. string activeClass2 = "";
  35. }
  36. @if (Model.CatId.HasValue && Model.CatId!= null)
  37. {
  38. }
  39. else
  40. {
  41. activeClass = "active";
  42. }
  43. <li class="@activeClass filter" data-role="button"><a href="~/product/index"> همه محصولات</a></li>
  44. @foreach(var cat in Model.Categories)
  45. {
  46. if (Model.CatId.HasValue && Model.CatId.Value == cat.ID)
  47. {
  48. activeClass2 = "active";
  49. }
  50. else
  51. {
  52. activeClass2 = "";
  53. }
  54. <li class="@activeClass2 filter" data-role="button">
  55. <a href="~/product/index?CatId=@cat.ID"> @cat.Title</a>
  56. </li>
  57. }
  58. </ul>
  59. </div>
  60. <div class="filter-list row clearfix">
  61. @foreach(var item in Model.Products)
  62. {
  63. <!-- Project Block -->
  64. <div class="project-block mix col-lg-3 col-md-6 col-sm-12">
  65. <div class="inner-box">
  66. <div class="image">
  67. <img src="~/@item.ImageSrc" alt="@item.Title" />
  68. <!-- Overlay Box -->
  69. <div class="overlay-box">
  70. <div class="icons">
  71. <a class="plus" href="~/@item.ImageSrc" data-fancybox="gallery-1" data-caption=""><span class="flaticon-plus-symbol"></span></a>
  72. <a class="link" href="~/Product/Detail/@item.ID"><span class="icon flaticon-link"></span></a>
  73. </div>
  74. <div class="overlay-inner">
  75. <div class="overlay-content">
  76. <h3><a href="~/Product/Detail/@item.ID">@item.Title</a></h3>
  77. <div class="category">@item.Price</div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. }
  85. </div>
  86. </div>
  87. <div class="btn-box text-center">
  88. <a href="#" class="theme-btn btn-style-two">محصولات بیشتر</a>
  89. </div>
  90. </div>
  91. </section>
  92. <!-- End Projects Page Section -->