Benjamin Arhen
2 years ago
15 changed files with 290 additions and 98 deletions
@ -1,17 +1,39 @@ |
|||||
@using Biskilog_Accounting.Shared.Interfaces |
@using Biskilog_Accounting.Shared.Interfaces |
||||
|
@using Microsoft.Fast.Components.FluentUI |
||||
@inject ICalculator m_calculator |
@inject ICalculator m_calculator |
||||
|
|
||||
<div class="card"> |
@if (!IsLoading) |
||||
<div class="card-body"> |
{ |
||||
<div class="card-title d-flex align-items-start justify-content-between"> |
<div class="card"> |
||||
<div class="avatar flex-shrink-0"> |
<div class="card-body"> |
||||
<img src="@Icon" |
<div class="card-title d-flex align-items-start justify-content-between"> |
||||
alt="chart success" |
<div class="avatar flex-shrink-0"> |
||||
class="rounded" /> |
<img src="@Icon" |
||||
|
alt="chart success" |
||||
|
class="rounded" /> |
||||
|
</div> |
||||
</div> |
</div> |
||||
|
<span class="fw-semibold d-block mb-1">@Title</span> |
||||
|
<h6 class="card-title mb-2">@(m_calculator.FormatMoneyWithCurrency(Value))</h6> |
||||
|
<small class="@(Percentage > 0 ? "text-success" : Percentage == 0 ? "bx-forward-arrow-alt" : "text-danger") fw-semibold"><i class="bx @(Percentage > 0 ? "bx-up-arrow-alt" : Percentage == 0 ? "bx-forward-arrow-alt" : "bx-down-arrow-alt")"></i> @(Percentage.ToString("0.00")) %</small> |
||||
</div> |
</div> |
||||
<span class="fw-semibold d-block mb-1">@Title</span> |
|
||||
<h6 class="card-title mb-2">@(m_calculator.FormatMoneyWithCurrency(Value))</h6> |
|
||||
<small class="@(Percentage > 0 ? "text-success" : Percentage == 0 ? "bx-forward-arrow-alt" : "text-danger") fw-semibold"><i class="bx @(Percentage > 0 ? "bx-up-arrow-alt" : Percentage == 0 ? "bx-forward-arrow-alt" : "bx-down-arrow-alt")"></i> @(Percentage.ToString("0.00")) %</small> |
|
||||
</div> |
</div> |
||||
</div> |
} |
||||
|
else |
||||
|
{ |
||||
|
<FluentCard class="card-padding"> |
||||
|
<FluentSkeleton style="border-radius: 4px; width: 50px; height: 50px;" Shape="SkeletonShape.Circle" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style=" |
||||
|
border-radius: 4px; |
||||
|
width: 75px; |
||||
|
height: 30px; |
||||
|
margin-top: 20px; |
||||
|
margin-bottom: 10px; |
||||
|
" |
||||
|
Shape="SkeletonShape.Rect" |
||||
|
Shimmer="true"></FluentSkeleton> |
||||
|
</FluentCard> |
||||
|
} |
@ -1,31 +1,58 @@ |
|||||
@using Biskilog_Accounting.Shared.CustomModels; |
@using Biskilog_Accounting.Shared.CustomModels; |
||||
@using Biskilog_Accounting.Shared.Interfaces; |
@using Biskilog_Accounting.Shared.Interfaces; |
||||
|
@using Microsoft.Fast.Components.FluentUI |
||||
@inject ICalculator m_calculator |
@inject ICalculator m_calculator |
||||
|
|
||||
<div class="card h-100"> |
@if (!IsLoading) |
||||
<div class="card-header d-flex align-items-center justify-content-between"> |
{ |
||||
<h5 class="card-title m-0 me-2">Last 50 Transactions</h5> |
<div class="card h-100"> |
||||
</div> |
<div class="card-header d-flex align-items-center justify-content-between"> |
||||
<div class="card-body" style="padding:5px !important;"> |
<h5 class="card-title m-0 me-2">Last 50 Transactions</h5> |
||||
<RadzenDataGrid Data="@Sales" TItem="SaleItem" AllowPaging="true" AllowSorting="true"> |
</div> |
||||
<Columns> |
<div class="card-body" style="padding:5px !important;"> |
||||
<RadzenDataGridColumn TItem="SaleItem" Property="Transno" Title="Receipt#" /> |
<RadzenDataGrid Data="@Sales" TItem="SaleItem" AllowPaging="true" AllowSorting="true"> |
||||
<RadzenDataGridColumn TItem="SaleItem" Property="Date" Title="Timestamp" /> |
<Columns> |
||||
<RadzenDataGridColumn TItem="SaleItem" Property="Total" Title="Total"> |
<RadzenDataGridColumn TItem="SaleItem" Property="Transno" Title="Receipt#" /> |
||||
<Template Context="detail"> |
<RadzenDataGridColumn TItem="SaleItem" Property="Date" Title="Timestamp" /> |
||||
@(m_calculator.FormatMoneyWithCurrencyKilo((double)detail.Total)) |
<RadzenDataGridColumn TItem="SaleItem" Property="Total" Title="Total"> |
||||
</Template> |
<Template Context="detail"> |
||||
</RadzenDataGridColumn> |
@( |
||||
|
m_calculator.FormatMoneyWithCurrencyKilo((double)detail.Total) |
||||
|
) |
||||
|
</Template> |
||||
|
</RadzenDataGridColumn> |
||||
|
|
||||
</Columns> |
</Columns> |
||||
</RadzenDataGrid> |
</RadzenDataGrid> |
||||
|
</div> |
||||
</div> |
</div> |
||||
</div> |
} |
||||
|
else |
||||
|
{ |
||||
|
<FluentCard class="card-padding"> |
||||
|
<FluentSkeleton style="border-radius: 4px; width: 50px; height: 50px;" Shape="SkeletonShape.Circle" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style=" |
||||
|
border-radius: 4px; |
||||
|
width: 75px; |
||||
|
height: 30px; |
||||
|
margin-top: 20px; |
||||
|
margin-bottom: 10px; |
||||
|
" |
||||
|
Shape="SkeletonShape.Rect" |
||||
|
Shimmer="true"></FluentSkeleton> |
||||
|
</FluentCard> |
||||
|
} |
||||
<style> |
<style> |
||||
.rz-datatable-thead th, .rz-grid-table thead th { |
.rz-datatable-thead th, .rz-grid-table thead th { |
||||
background-color: #a4d5d3; |
background-color: #a4d5d3; |
||||
padding: 0; |
padding: 0; |
||||
color: white; |
color: white; |
||||
} |
} |
||||
|
|
||||
|
.rz-datatable { |
||||
|
border: none !important; |
||||
|
} |
||||
</style> |
</style> |
@ -1,25 +1,47 @@ |
|||||
@using Biskilog_Accounting.Shared.Interfaces; |
@using Biskilog_Accounting.Shared.Interfaces; |
||||
|
@using Microsoft.Fast.Components.FluentUI |
||||
@inject ICalculator m_calculator; |
@inject ICalculator m_calculator; |
||||
|
|
||||
<div class="card"> |
@if (!IsLoading) |
||||
<div class="d-flex align-items-end row"> |
{ |
||||
<div class="col-sm-7"> |
<div class="card"> |
||||
<div class="card-body"> |
<div class="d-flex align-items-end row"> |
||||
<h5 class="card-title text-primary">@(TradeSummary.CurrentTradeSales > TradeSummary.LastTradeSales ? "Congratulations 🎉" : TradeSummary.LastTradeSales > TradeSummary.CurrentTradeSales ? "Tough shift there" : "Well Done") @Username!</h5> |
<div class="col-sm-7"> |
||||
<p class="mb-4"> |
<div class="card-body"> |
||||
@m_remarks |
<h5 class="card-title text-primary">@(TradeSummary.CurrentTradeSales > TradeSummary.LastTradeSales ? "Congratulations 🎉" : TradeSummary.LastTradeSales > TradeSummary.CurrentTradeSales ? "Tough shift there" : "Well Done") @Username!</h5> |
||||
</p> |
<p class="mb-4"> |
||||
<a href="javascript:;" class="btn btn-sm btn-outline-primary">View Trade Summary</a> |
@m_remarks |
||||
|
</p> |
||||
|
<a href="javascript:;" class="btn btn-sm btn-outline-primary">View Trade Summary</a> |
||||
|
</div> |
||||
</div> |
</div> |
||||
</div> |
<div class="col-sm-5 text-center text-sm-left"> |
||||
<div class="col-sm-5 text-center text-sm-left"> |
<div class="card-body pb-0 px-0 px-md-4"> |
||||
<div class="card-body pb-0 px-0 px-md-4"> |
<img src="../assets/img/illustrations/man-with-laptop-light.png" |
||||
<img src="../assets/img/illustrations/man-with-laptop-light.png" |
height="140" |
||||
height="140" |
alt="View Badge User" |
||||
alt="View Badge User" |
data-app-dark-img="illustrations/man-with-laptop-dark.png" |
||||
data-app-dark-img="illustrations/man-with-laptop-dark.png" |
data-app-light-img="illustrations/man-with-laptop-light.png" /> |
||||
data-app-light-img="illustrations/man-with-laptop-light.png" /> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
} |
||||
|
else |
||||
|
{ |
||||
|
<FluentCard class="card-padding"> |
||||
|
<FluentSkeleton style="border-radius: 4px; width: 50px; height: 50px;" Shape="SkeletonShape.Circle" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style="border-radius: 4px; margin-top: 10px; height: 10px;" Shape="SkeletonShape.Rect" Shimmer="true"></FluentSkeleton> |
||||
|
<FluentSkeleton style=" |
||||
|
border-radius: 4px; |
||||
|
width: 75px; |
||||
|
height: 30px; |
||||
|
margin-top: 20px; |
||||
|
margin-bottom: 10px; |
||||
|
" |
||||
|
Shape="SkeletonShape.Rect" |
||||
|
Shimmer="true"></FluentSkeleton> |
||||
|
</FluentCard> |
||||
|
} |
Loading…
Reference in new issue