Refactor commission-related pages and terminology to enhance clarity and consistency
Build and Deploy / build (push) Successful in 1m22s
Build and Deploy / build (push) Successful in 1m22s
- Updated CommissionDashboardPage to reflect new terminology for rewards instead of commissions. - Removed CommissionHistoryPage as its functionality has been integrated into the dashboard. - Adjusted WeeklyBalancePage to align with new reward terminology and improved layout. - Modified Index, NetworkStatisticsPage, MyPackages, Packages, Profile, and Wallet pages to use consistent terms related to team and rewards. - Updated ClubMembershipContractDialog to clarify user invitation terms. - Enhanced footer description to reflect the focus on sales teams.
This commit is contained in:
@@ -11,10 +11,10 @@
|
|||||||
<MudChip T="string" Color="Color.Secondary" Variant="Variant.Filled" Class="mb-2">درباره کارا بازار سلامت</MudChip>
|
<MudChip T="string" Color="Color.Secondary" Variant="Variant.Filled" Class="mb-2">درباره کارا بازار سلامت</MudChip>
|
||||||
<MudStack Spacing="3">
|
<MudStack Spacing="3">
|
||||||
<MudText Typo="Typo.h2" Class="mb-3">
|
<MudText Typo="Typo.h2" Class="mb-3">
|
||||||
پلتفرم هوشمند شبکهسازی و مدیریت تیم
|
پلتفرم هوشمند تیمسازی و مدیریت فروش
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudText Typo="Typo.body1" Class="mud-text-secondary mb-4">
|
<MudText Typo="Typo.body1" Class="mud-text-secondary mb-4">
|
||||||
ما با ارائه ابزارهای نوآورانه، به کسبوکارها کمک میکنیم تا شبکههای فروش خود را گسترش دهند و تیمهای خود را به صورت کارآمد مدیریت کنند.
|
ما با ارائه ابزارهای نوآورانه، به کسبوکارها کمک میکنیم تا تیمهای فروش خود را گسترش دهند و به صورت کارآمد مدیریت کنند.
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudStack Row="true" Spacing="2">
|
<MudStack Row="true" Spacing="2">
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<MudItem xs="12" md="6">
|
<MudItem xs="12" md="6">
|
||||||
<MudPaper Class="pa-8 rounded-xl" Style="background: radial-gradient(600px 280px at 120% 0, #daccff 0, transparent 60%), radial-gradient(600px 280px at -10% 100%, #ffe2f2 0, transparent 60%), linear-gradient(180deg, #fff, #fbfaff);">
|
<MudPaper Class="pa-8 rounded-xl" Style="background: radial-gradient(600px 280px at 120% 0, #daccff 0, transparent 60%), radial-gradient(600px 280px at -10% 100%, #ffe2f2 0, transparent 60%), linear-gradient(180deg, #fff, #fbfaff);">
|
||||||
<MudImage Src="images/team-work.jpg"
|
<MudImage Src="images/team-work.jpg"
|
||||||
Alt="جلسه تیم فروش و شبکهسازی"
|
Alt="جلسه تیم فروش"
|
||||||
ObjectFit="ObjectFit.Cover"
|
ObjectFit="ObjectFit.Cover"
|
||||||
ObjectPosition="ObjectPosition.Center"
|
ObjectPosition="ObjectPosition.Center"
|
||||||
Style="width:100%"
|
Style="width:100%"
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<MudIcon Icon="@Icons.Material.Filled.Visibility" Size="Size.Large" Color="Color.Primary" Class="mb-4" />
|
<MudIcon Icon="@Icons.Material.Filled.Visibility" Size="Size.Large" Color="Color.Primary" Class="mb-4" />
|
||||||
<MudText Typo="Typo.h5" Class="mb-3">چشمانداز</MudText>
|
<MudText Typo="Typo.h5" Class="mb-3">چشمانداز</MudText>
|
||||||
<MudText Typo="Typo.body1" Class="mud-text-secondary">
|
<MudText Typo="Typo.body1" Class="mud-text-secondary">
|
||||||
تبدیل شدن به پیشروترین پلتفرم مدیریت شبکههای فروش در منطقه، با ارائه راهکارهای هوشمند و کاربرپسند برای کسبوکارهای کوچک و بزرگ.
|
تبدیل شدن به پیشروترین پلتفرم مدیریت تیمهای فروش در منطقه، با ارائه راهکارهای هوشمند و کاربرپسند برای کسبوکارهای کوچک و بزرگ.
|
||||||
</MudText>
|
</MudText>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|||||||
@@ -1,32 +1,33 @@
|
|||||||
@attribute [Route(RouteConstants.Commission.Dashboard)]
|
@attribute [Route(RouteConstants.Commission.Dashboard)]
|
||||||
|
@attribute [Route(RouteConstants.Commission.History)]
|
||||||
@using FrontOffice.Main.Utilities
|
@using FrontOffice.Main.Utilities
|
||||||
|
@using FrontOffice.Main.Shared
|
||||||
@using MudBlazor
|
@using MudBlazor
|
||||||
|
|
||||||
<PageTitle>داشبورد کمیسیون</PageTitle>
|
<PageTitle>پاداشهای من</PageTitle>
|
||||||
|
|
||||||
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
||||||
<MudStack Spacing="3">
|
<MudStack Spacing="3">
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<MudText Typo="Typo.h5">داشبورد کمیسیون</MudText>
|
<MudText Typo="Typo.h5">پاداشهای من</MudText>
|
||||||
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Profile.Index">بازگشت</MudButton>
|
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Profile.Index">بازگشت</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
@if (_isLoading)
|
<!-- فیلترها -->
|
||||||
{
|
<MudPaper Elevation="2" Class="pa-3 rounded-lg">
|
||||||
<MudProgressLinear Color="Color.Primary" Indeterminate="true" />
|
<MudGrid Spacing="2">
|
||||||
}
|
<MudItem xs="12" sm="6" md="4">
|
||||||
else
|
<WeekSelector @ref="_weekSelector"
|
||||||
{
|
@bind-Value="_selectedWeekDefinition"
|
||||||
<!-- فیلترها -->
|
Label="انتخاب هفته"
|
||||||
<MudPaper Elevation="2" Class="pa-3 rounded-lg">
|
Placeholder="جستجوی هفته..."
|
||||||
<MudStack Row="true" Spacing="2" AlignItems="AlignItems.End">
|
Variant="Variant.Outlined"
|
||||||
<MudNumericField @bind-Value="_filterWeekNumber"
|
Dense="false"
|
||||||
Label="شماره هفته"
|
Clearable="true"
|
||||||
Variant="Variant.Outlined"
|
OnlyActive="false" />
|
||||||
Min="1"
|
</MudItem>
|
||||||
Clearable="true"
|
<MudItem xs="12" sm="6" md="4">
|
||||||
Style="max-width: 150px;" />
|
<MudSelect T="string" @bind-Value="_filterStatus" Label="وضعیت" Variant="Variant.Outlined">
|
||||||
<MudSelect T="string" @bind-Value="_filterStatus" Label="وضعیت" Variant="Variant.Outlined" Style="max-width: 200px;">
|
|
||||||
<MudSelectItem T="string" Value="@string.Empty">همه</MudSelectItem>
|
<MudSelectItem T="string" Value="@string.Empty">همه</MudSelectItem>
|
||||||
<MudSelectItem T="string" Value="@("Pending")">در انتظار</MudSelectItem>
|
<MudSelectItem T="string" Value="@("Pending")">در انتظار</MudSelectItem>
|
||||||
<MudSelectItem T="string" Value="@("Paid")">پرداخت شده</MudSelectItem>
|
<MudSelectItem T="string" Value="@("Paid")">پرداخت شده</MudSelectItem>
|
||||||
@@ -35,78 +36,114 @@
|
|||||||
<MudSelectItem T="string" Value="@("PaymentFailed")">شکست خورده</MudSelectItem>
|
<MudSelectItem T="string" Value="@("PaymentFailed")">شکست خورده</MudSelectItem>
|
||||||
<MudSelectItem T="string" Value="@("Cancelled")">لغو شده</MudSelectItem>
|
<MudSelectItem T="string" Value="@("Cancelled")">لغو شده</MudSelectItem>
|
||||||
</MudSelect>
|
</MudSelect>
|
||||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="ApplyFiltersAsync" StartIcon="@Icons.Material.Filled.FilterList">
|
</MudItem>
|
||||||
اعمال فیلتر
|
<MudItem xs="12" sm="12" md="4">
|
||||||
</MudButton>
|
<MudStack Row="true" Spacing="2" Style="height: 100%;" AlignItems="AlignItems.End">
|
||||||
<MudButton Variant="Variant.Outlined" OnClick="ClearFiltersAsync" StartIcon="@Icons.Material.Filled.Clear">
|
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="ApplyFiltersAsync" StartIcon="@Icons.Material.Filled.FilterList" FullWidth="true">
|
||||||
پاک کردن
|
اعمال فیلتر
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
<MudButton Variant="Variant.Outlined" OnClick="ClearFiltersAsync" StartIcon="@Icons.Material.Filled.Clear" FullWidth="true">
|
||||||
</MudPaper>
|
پاک کردن
|
||||||
|
</MudButton>
|
||||||
|
</MudStack>
|
||||||
|
</MudItem>
|
||||||
|
</MudGrid>
|
||||||
|
</MudPaper>
|
||||||
|
|
||||||
<!-- لیست کمیسیونها -->
|
@if (_isLoading)
|
||||||
|
{
|
||||||
|
<MudProgressLinear Color="Color.Primary" Indeterminate="true" />
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<!-- آمار خلاصه -->
|
||||||
@if (_payouts.Any())
|
@if (_payouts.Any())
|
||||||
{
|
{
|
||||||
<MudHidden Breakpoint="Breakpoint.MdAndUp" Invert="true">
|
<MudGrid Spacing="2">
|
||||||
<MudTable Items="_payouts" Hover="true" Striped="true" Dense="true">
|
<MudItem xs="6" sm="4">
|
||||||
<HeaderContent>
|
<MudPaper Elevation="2" Class="pa-3 rounded-lg text-center">
|
||||||
<MudTh>هفته</MudTh>
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">کل پاداش</MudText>
|
||||||
<MudTh>تعداد تعادل</MudTh>
|
<MudText Typo="Typo.h6" Color="Color.Success">@GetTotalEarnings()</MudText>
|
||||||
<MudTh>مبلغ کل</MudTh>
|
</MudPaper>
|
||||||
<MudTh>وضعیت</MudTh>
|
</MudItem>
|
||||||
<MudTh>تاریخ</MudTh>
|
<MudItem xs="6" sm="4">
|
||||||
<MudTh>عملیات</MudTh>
|
<MudPaper Elevation="2" Class="pa-3 rounded-lg text-center">
|
||||||
</HeaderContent>
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">تعداد</MudText>
|
||||||
<RowTemplate>
|
<MudText Typo="Typo.h6" Color="Color.Primary">@_totalCount</MudText>
|
||||||
<MudTd>
|
</MudPaper>
|
||||||
<MudChip T="string" Color="Color.Default" Size="Size.Small">@context.WeekDisplayName</MudChip>
|
</MudItem>
|
||||||
</MudTd>
|
<MudItem xs="12" sm="4">
|
||||||
<MudTd>@context.BalancesEarned</MudTd>
|
<MudPaper Elevation="2" Class="pa-3 rounded-lg text-center">
|
||||||
<MudTd>
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">میانگین هفتگی</MudText>
|
||||||
<MudText Color="Color.Success"><strong>@context.AmountFormatted</strong></MudText>
|
<MudText Typo="Typo.h6" Color="Color.Info">@GetAverageWeekly()</MudText>
|
||||||
</MudTd>
|
</MudPaper>
|
||||||
<MudTd>
|
</MudItem>
|
||||||
<MudChip T="string" Color="@GetStatusColor(context.StatusColor)" Size="Size.Small" Variant="Variant.Outlined">
|
</MudGrid>
|
||||||
@context.StatusText
|
}
|
||||||
</MudChip>
|
|
||||||
</MudTd>
|
<!-- لیست پاداشها -->
|
||||||
<MudTd>@context.DatePersian</MudTd>
|
@if (_payouts.Any())
|
||||||
<MudTd>
|
{
|
||||||
<MudButton Size="Size.Small"
|
<!-- جدول - دسکتاپ -->
|
||||||
Variant="Variant.Text"
|
<MudHidden Breakpoint="Breakpoint.SmAndDown">
|
||||||
Color="Color.Info"
|
<MudPaper Elevation="2" Class="pa-0 rounded-lg">
|
||||||
StartIcon="@Icons.Material.Filled.Info"
|
<MudTable Items="_payouts" Hover="true" Striped="true" Dense="true" FixedHeader="true" Height="400px">
|
||||||
Href="@($"{RouteConstants.Commission.WeeklyBalance}?week={context.WeekDefinitionId}")">
|
<HeaderContent>
|
||||||
جزئیات
|
<MudTh>هفته</MudTh>
|
||||||
</MudButton>
|
<MudTh>امتیاز</MudTh>
|
||||||
</MudTd>
|
<MudTh>مبلغ (تومان)</MudTh>
|
||||||
</RowTemplate>
|
<MudTh>وضعیت</MudTh>
|
||||||
</MudTable>
|
<MudTh>تاریخ</MudTh>
|
||||||
|
<MudTh>جزئیات</MudTh>
|
||||||
|
</HeaderContent>
|
||||||
|
<RowTemplate>
|
||||||
|
<MudTd DataLabel="هفته">
|
||||||
|
<MudChip T="string" Color="Color.Primary" Size="Size.Small" Variant="Variant.Outlined">@context.WeekDisplayName</MudChip>
|
||||||
|
</MudTd>
|
||||||
|
<MudTd DataLabel="امتیاز">@context.BalancesEarned</MudTd>
|
||||||
|
<MudTd DataLabel="مبلغ">
|
||||||
|
<MudText Color="Color.Success"><strong>@context.AmountFormatted</strong></MudText>
|
||||||
|
</MudTd>
|
||||||
|
<MudTd DataLabel="وضعیت">
|
||||||
|
<MudChip T="string" Color="@GetStatusColor(context.StatusColor)" Size="Size.Small">@context.StatusText</MudChip>
|
||||||
|
</MudTd>
|
||||||
|
<MudTd DataLabel="تاریخ">@context.DatePersian</MudTd>
|
||||||
|
<MudTd DataLabel="جزئیات">
|
||||||
|
<MudIconButton Size="Size.Small"
|
||||||
|
Icon="@Icons.Material.Filled.Visibility"
|
||||||
|
Color="Color.Info"
|
||||||
|
Href="@($"{RouteConstants.Commission.WeeklyBalance}?week={context.WeekDefinitionId}")" />
|
||||||
|
</MudTd>
|
||||||
|
</RowTemplate>
|
||||||
|
</MudTable>
|
||||||
|
</MudPaper>
|
||||||
</MudHidden>
|
</MudHidden>
|
||||||
|
|
||||||
<MudHidden Breakpoint="Breakpoint.MdAndUp">
|
<!-- کارتها - موبایل -->
|
||||||
|
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
|
||||||
<MudStack Spacing="2">
|
<MudStack Spacing="2">
|
||||||
@foreach (var payout in _payouts)
|
@foreach (var payout in _payouts)
|
||||||
{
|
{
|
||||||
<MudPaper Class="pa-3 rounded-lg" Outlined="true">
|
<MudPaper Class="pa-3 rounded-lg" Outlined="true">
|
||||||
<MudStack Spacing="1">
|
<MudStack Spacing="1">
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<MudChip T="string" Color="Color.Default" Size="Size.Small">@payout.WeekDisplayName</MudChip>
|
<MudChip T="string" Color="Color.Primary" Size="Size.Small" Variant="Variant.Outlined">@payout.WeekDisplayName</MudChip>
|
||||||
<MudChip T="string" Color="@GetStatusColor(payout.StatusColor)" Size="Size.Small" Variant="Variant.Outlined">
|
<MudChip T="string" Color="@GetStatusColor(payout.StatusColor)" Size="Size.Small">@payout.StatusText</MudChip>
|
||||||
@payout.StatusText
|
</MudStack>
|
||||||
</MudChip>
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
|
<MudText Typo="Typo.h6" Color="Color.Success">@payout.AmountFormatted</MudText>
|
||||||
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">امتیاز: @payout.BalancesEarned</MudText>
|
||||||
|
</MudStack>
|
||||||
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">@payout.DatePersian</MudText>
|
||||||
|
<MudButton Size="Size.Small"
|
||||||
|
Variant="Variant.Text"
|
||||||
|
Color="Color.Info"
|
||||||
|
EndIcon="@Icons.Material.Filled.ChevronLeft"
|
||||||
|
Href="@($"{RouteConstants.Commission.WeeklyBalance}?week={payout.WeekDefinitionId}")">
|
||||||
|
جزئیات
|
||||||
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
<MudText Typo="Typo.h6" Color="Color.Success">@payout.AmountFormatted</MudText>
|
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">تعداد تعادل: @payout.BalancesEarned</MudText>
|
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">@payout.DatePersian</MudText>
|
|
||||||
<MudButton Size="Size.Small"
|
|
||||||
Variant="Variant.Outlined"
|
|
||||||
Color="Color.Info"
|
|
||||||
FullWidth="true"
|
|
||||||
StartIcon="@Icons.Material.Filled.Info"
|
|
||||||
Href="@($"{RouteConstants.Commission.WeeklyBalance}?week={payout.WeekDefinitionId}")">
|
|
||||||
مشاهده جزئیات هفته
|
|
||||||
</MudButton>
|
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
}
|
}
|
||||||
@@ -114,37 +151,27 @@
|
|||||||
</MudHidden>
|
</MudHidden>
|
||||||
|
|
||||||
<!-- Pagination -->
|
<!-- Pagination -->
|
||||||
<MudPaper Elevation="0" Class="pa-3">
|
<MudPaper Elevation="0" Class="pa-2">
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.Center" AlignItems="AlignItems.Center">
|
||||||
<MudText Typo="Typo.body2">کل: @_totalCount کمیسیون</MudText>
|
<MudPagination Count="@GetTotalPages()" Selected="_pageNumber" SelectedChanged="OnPageChangedAsync" Color="Color.Primary" Size="Size.Small" />
|
||||||
<MudPagination Count="@GetTotalPages()" Selected="_pageNumber" SelectedChanged="OnPageChangedAsync" Color="Color.Primary" />
|
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined">
|
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined">
|
||||||
کمیسیونی برای نمایش وجود ندارد.
|
پاداشی برای نمایش وجود ندارد.
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
}
|
}
|
||||||
|
|
||||||
<!-- دکمههای بیشتر -->
|
<!-- دکمه گزارش هفتگی -->
|
||||||
<MudStack Row="true" Spacing="2">
|
<MudButton Variant="Variant.Outlined"
|
||||||
<MudButton Variant="Variant.Outlined"
|
Color="Color.Info"
|
||||||
Color="Color.Secondary"
|
StartIcon="@Icons.Material.Filled.BarChart"
|
||||||
StartIcon="@Icons.Material.Filled.History"
|
Href="@RouteConstants.Commission.WeeklyBalance"
|
||||||
Href="@RouteConstants.Commission.History"
|
FullWidth="true">
|
||||||
FullWidth="true">
|
مشاهده گزارش هفتگی
|
||||||
تاریخچه کامل
|
</MudButton>
|
||||||
</MudButton>
|
|
||||||
<MudButton Variant="Variant.Outlined"
|
|
||||||
Color="Color.Info"
|
|
||||||
StartIcon="@Icons.Material.Filled.BarChart"
|
|
||||||
Href="@RouteConstants.Commission.WeeklyBalance"
|
|
||||||
FullWidth="true">
|
|
||||||
تعادل هفتگی
|
|
||||||
</MudButton>
|
|
||||||
</MudStack>
|
|
||||||
}
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudContainer>
|
</MudContainer>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using FrontOffice.Main.Shared;
|
||||||
using FrontOffice.Main.Utilities;
|
using FrontOffice.Main.Utilities;
|
||||||
using Microsoft.AspNetCore.Components;
|
using Microsoft.AspNetCore.Components;
|
||||||
using MudBlazor;
|
using MudBlazor;
|
||||||
@@ -10,11 +11,13 @@ public partial class CommissionDashboardPage : ComponentBase
|
|||||||
|
|
||||||
private List<CommissionPayoutDto> _payouts = new();
|
private List<CommissionPayoutDto> _payouts = new();
|
||||||
private int _totalCount;
|
private int _totalCount;
|
||||||
|
private long _totalAmount;
|
||||||
private int _pageNumber = 1;
|
private int _pageNumber = 1;
|
||||||
private int _pageSize = 10;
|
private int _pageSize = 10;
|
||||||
private bool _isLoading = true;
|
private bool _isLoading = true;
|
||||||
|
|
||||||
private int? _filterWeekNumber;
|
private WeekSelector? _weekSelector;
|
||||||
|
private WeekDefinitionDto? _selectedWeekDefinition;
|
||||||
private string _filterStatus = string.Empty;
|
private string _filterStatus = string.Empty;
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
@@ -27,18 +30,20 @@ public partial class CommissionDashboardPage : ComponentBase
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_isLoading = true;
|
_isLoading = true;
|
||||||
|
var weekDefinitionId = _selectedWeekDefinition?.Id;
|
||||||
var result = await CommissionService.GetMyCommissionPayoutsAsync(
|
var result = await CommissionService.GetMyCommissionPayoutsAsync(
|
||||||
_filterWeekNumber,
|
weekDefinitionId,
|
||||||
_filterStatus,
|
_filterStatus,
|
||||||
_pageNumber,
|
_pageNumber,
|
||||||
_pageSize
|
_pageSize
|
||||||
);
|
);
|
||||||
_payouts = result.Payouts;
|
_payouts = result.Payouts;
|
||||||
_totalCount = result.TotalCount;
|
_totalCount = result.TotalCount;
|
||||||
|
_totalAmount = _payouts.Sum(p => p.TotalAmount);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Snackbar.Add($"خطا در دریافت کمیسیونها: {ex.Message}", Severity.Error);
|
Snackbar.Add($"خطا در دریافت پاداشها: {ex.Message}", Severity.Error);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@@ -54,7 +59,7 @@ public partial class CommissionDashboardPage : ComponentBase
|
|||||||
|
|
||||||
private async Task ClearFiltersAsync()
|
private async Task ClearFiltersAsync()
|
||||||
{
|
{
|
||||||
_filterWeekNumber = null;
|
_selectedWeekDefinition = null;
|
||||||
_filterStatus = string.Empty;
|
_filterStatus = string.Empty;
|
||||||
_pageNumber = 1;
|
_pageNumber = 1;
|
||||||
await LoadPayoutsAsync();
|
await LoadPayoutsAsync();
|
||||||
@@ -73,6 +78,19 @@ public partial class CommissionDashboardPage : ComponentBase
|
|||||||
return (int)Math.Ceiling(_totalCount / (double)_pageSize);
|
return (int)Math.Ceiling(_totalCount / (double)_pageSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string GetTotalEarnings()
|
||||||
|
{
|
||||||
|
return $"{_totalAmount:N0} تومان";
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetAverageWeekly()
|
||||||
|
{
|
||||||
|
if (_totalCount == 0)
|
||||||
|
return "0 تومان";
|
||||||
|
var avg = _totalAmount / _totalCount;
|
||||||
|
return $"{avg:N0} تومان";
|
||||||
|
}
|
||||||
|
|
||||||
private Color GetStatusColor(string statusColor) => statusColor.ToLower() switch
|
private Color GetStatusColor(string statusColor) => statusColor.ToLower() switch
|
||||||
{
|
{
|
||||||
"success" => Color.Success,
|
"success" => Color.Success,
|
||||||
|
|||||||
@@ -1,91 +0,0 @@
|
|||||||
@attribute [Route(RouteConstants.Commission.History)]
|
|
||||||
@using FrontOffice.Main.Utilities
|
|
||||||
@using MudBlazor
|
|
||||||
|
|
||||||
<PageTitle>تاریخچه کمیسیون</PageTitle>
|
|
||||||
|
|
||||||
<MudContainer MaxWidth="MaxWidth.ExtraLarge" Class="py-6">
|
|
||||||
<MudStack Spacing="3">
|
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
|
||||||
<MudText Typo="Typo.h5">تاریخچه کامل کمیسیون</MudText>
|
|
||||||
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Commission.Dashboard">بازگشت</MudButton>
|
|
||||||
</MudStack>
|
|
||||||
|
|
||||||
@if (_isLoading)
|
|
||||||
{
|
|
||||||
<MudProgressLinear Color="Color.Primary" Indeterminate="true" />
|
|
||||||
}
|
|
||||||
else if (_payouts.Any())
|
|
||||||
{
|
|
||||||
<!-- آمار خلاصه -->
|
|
||||||
<MudGrid Spacing="2">
|
|
||||||
<MudItem xs="12" sm="4">
|
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">کل کمیسیون دریافتی</MudText>
|
|
||||||
<MudText Typo="Typo.h5" Color="Color.Success">@GetTotalEarnings()</MudText>
|
|
||||||
</MudPaper>
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="12" sm="4">
|
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">تعداد هفتهها</MudText>
|
|
||||||
<MudText Typo="Typo.h5" Color="Color.Primary">@_payouts.Count</MudText>
|
|
||||||
</MudPaper>
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="12" sm="4">
|
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">میانگین هفتگی</MudText>
|
|
||||||
<MudText Typo="Typo.h5" Color="Color.Info">@GetAverageWeekly()</MudText>
|
|
||||||
</MudPaper>
|
|
||||||
</MudItem>
|
|
||||||
</MudGrid>
|
|
||||||
|
|
||||||
<!-- جدول کامل -->
|
|
||||||
<MudPaper Elevation="2" Class="pa-0 rounded-lg">
|
|
||||||
<MudTable Items="_payouts" Hover="true" Striped="true" Dense="false" FixedHeader="true" Height="600px">
|
|
||||||
<HeaderContent>
|
|
||||||
<MudTh>هفته</MudTh>
|
|
||||||
<MudTh>تعادلها</MudTh>
|
|
||||||
<MudTh>مبلغ (تومان)</MudTh>
|
|
||||||
<MudTh>وضعیت</MudTh>
|
|
||||||
<MudTh>تاریخ</MudTh>
|
|
||||||
<MudTh>جزئیات</MudTh>
|
|
||||||
</HeaderContent>
|
|
||||||
<RowTemplate>
|
|
||||||
<MudTd DataLabel="هفته">
|
|
||||||
<MudChip T="string" Color="Color.Primary" Size="Size.Small" Variant="Variant.Outlined">@context.WeekDisplayName</MudChip>
|
|
||||||
</MudTd>
|
|
||||||
<MudTd DataLabel="تعادلها">
|
|
||||||
<MudText>@context.BalancesEarned</MudText>
|
|
||||||
</MudTd>
|
|
||||||
<MudTd DataLabel="مبلغ">
|
|
||||||
<MudText Color="Color.Success" Typo="Typo.body1"><strong>@context.AmountFormatted</strong></MudText>
|
|
||||||
</MudTd>
|
|
||||||
<MudTd DataLabel="وضعیت">
|
|
||||||
<MudChip T="string" Color="@GetStatusColor(context.StatusColor)" Size="Size.Small">
|
|
||||||
@context.StatusText
|
|
||||||
</MudChip>
|
|
||||||
</MudTd>
|
|
||||||
<MudTd DataLabel="تاریخ">
|
|
||||||
<MudText Typo="Typo.caption">@context.DatePersian</MudText>
|
|
||||||
</MudTd>
|
|
||||||
<MudTd DataLabel="جزئیات">
|
|
||||||
<MudButton Size="Size.Small"
|
|
||||||
Variant="Variant.Text"
|
|
||||||
Color="Color.Info"
|
|
||||||
StartIcon="@Icons.Material.Filled.Visibility"
|
|
||||||
Href="@($"{RouteConstants.Commission.WeeklyBalance}?week={context.WeekDefinitionId}")">
|
|
||||||
مشاهده
|
|
||||||
</MudButton>
|
|
||||||
</MudTd>
|
|
||||||
</RowTemplate>
|
|
||||||
</MudTable>
|
|
||||||
</MudPaper>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<MudAlert Severity="Severity.Info" Variant="Variant.Filled">
|
|
||||||
هنوز کمیسیونی دریافت نکردهاید.
|
|
||||||
</MudAlert>
|
|
||||||
}
|
|
||||||
</MudStack>
|
|
||||||
</MudContainer>
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
using FrontOffice.Main.Utilities;
|
|
||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
using MudBlazor;
|
|
||||||
|
|
||||||
namespace FrontOffice.Main.Pages.Commission;
|
|
||||||
|
|
||||||
public partial class CommissionHistoryPage : ComponentBase
|
|
||||||
{
|
|
||||||
[Inject] private CommissionService CommissionService { get; set; } = default!;
|
|
||||||
|
|
||||||
private List<CommissionPayoutDto> _payouts = new();
|
|
||||||
private bool _isLoading = true;
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
|
||||||
{
|
|
||||||
await LoadAllPayoutsAsync();
|
|
||||||
}
|
|
||||||
|
|
||||||
private async Task LoadAllPayoutsAsync()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
_isLoading = true;
|
|
||||||
// Load all payouts (large page size to get everything)
|
|
||||||
var result = await CommissionService.GetMyCommissionPayoutsAsync(
|
|
||||||
null,
|
|
||||||
string.Empty,
|
|
||||||
1,
|
|
||||||
1000
|
|
||||||
);
|
|
||||||
_payouts = result.Payouts;
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Snackbar.Add($"خطا در دریافت تاریخچه: {ex.Message}", Severity.Error);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
_isLoading = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private string GetTotalEarnings()
|
|
||||||
{
|
|
||||||
var total = _payouts.Sum(p => p.TotalAmount);
|
|
||||||
return $"{total:N0} تومان";
|
|
||||||
}
|
|
||||||
|
|
||||||
private string GetAverageWeekly()
|
|
||||||
{
|
|
||||||
if (!_payouts.Any())
|
|
||||||
return "0 تومان";
|
|
||||||
var avg = _payouts.Average(p => p.TotalAmount);
|
|
||||||
return $"{avg:N0} تومان";
|
|
||||||
}
|
|
||||||
|
|
||||||
private Color GetStatusColor(string statusColor) => statusColor.ToLower() switch
|
|
||||||
{
|
|
||||||
"success" => Color.Success,
|
|
||||||
"warning" => Color.Warning,
|
|
||||||
"error" => Color.Error,
|
|
||||||
"info" => Color.Info,
|
|
||||||
_ => Color.Default
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -3,12 +3,12 @@
|
|||||||
@using FrontOffice.Main.Shared
|
@using FrontOffice.Main.Shared
|
||||||
@using MudBlazor
|
@using MudBlazor
|
||||||
|
|
||||||
<PageTitle>تعادل هفتگی</PageTitle>
|
<PageTitle>گزارش هفتگی</PageTitle>
|
||||||
|
|
||||||
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
||||||
<MudStack Spacing="3">
|
<MudStack Spacing="3">
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<MudText Typo="Typo.h5">تعادل هفتگی کمیسیون</MudText>
|
<MudText Typo="Typo.h5">گزارش هفتگی پاداش</MudText>
|
||||||
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Commission.Dashboard">بازگشت</MudButton>
|
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Commission.Dashboard">بازگشت</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
@@ -72,19 +72,37 @@
|
|||||||
</MudGrid>
|
</MudGrid>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|
||||||
<!-- تعادل چپ و راست - کارتهای بزرگ -->
|
<!-- امتیاز فروش تیم اول و دوم - کارتهای بزرگ -->
|
||||||
<MudGrid Spacing="2">
|
<MudGrid Spacing="2">
|
||||||
|
|
||||||
|
<MudItem xs="6">
|
||||||
|
<MudPaper Elevation="3" Class="pa-4 rounded-lg text-center" Style="background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);">
|
||||||
|
<MudStack Spacing="1" AlignItems="AlignItems.Center">
|
||||||
|
<MudIcon Icon="@Icons.Material.Filled.ChevronRight" Color="Color.Success" Size="Size.Large" />
|
||||||
|
<MudText Typo="Typo.subtitle2" Color="Color.Success">تیم دوم</MudText>
|
||||||
|
<MudText Typo="Typo.h5" Color="Color.Success" Style="font-weight: bold;">@_weeklyBalance.RightBalanceFormatted</MudText>
|
||||||
|
<MudProgressLinear Color="Color.Success"
|
||||||
|
Value="@GetRightPercentage()"
|
||||||
|
Size="Size.Medium"
|
||||||
|
Class="rounded-lg mt-2"
|
||||||
|
Style="width: 100%;" />
|
||||||
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
||||||
|
@GetRightPercentage().ToString("F1")% از کل
|
||||||
|
</MudText>
|
||||||
|
</MudStack>
|
||||||
|
</MudPaper>
|
||||||
|
</MudItem>
|
||||||
<MudItem xs="6">
|
<MudItem xs="6">
|
||||||
<MudPaper Elevation="3" Class="pa-4 rounded-lg text-center" Style="background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);">
|
<MudPaper Elevation="3" Class="pa-4 rounded-lg text-center" Style="background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);">
|
||||||
<MudStack Spacing="1" AlignItems="AlignItems.Center">
|
<MudStack Spacing="1" AlignItems="AlignItems.Center">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.ChevronLeft" Color="Color.Info" Size="Size.Large" />
|
<MudIcon Icon="@Icons.Material.Filled.ChevronLeft" Color="Color.Info" Size="Size.Large"/>
|
||||||
<MudText Typo="Typo.subtitle2" Color="Color.Info">شاخه چپ</MudText>
|
<MudText Typo="Typo.subtitle2" Color="Color.Info">تیم اول</MudText>
|
||||||
<MudText Typo="Typo.h5" Color="Color.Info" Style="font-weight: bold;">@_weeklyBalance.LeftBalanceFormatted</MudText>
|
<MudText Typo="Typo.h5" Color="Color.Info" Style="font-weight: bold;">@_weeklyBalance.LeftBalanceFormatted</MudText>
|
||||||
<MudProgressLinear Color="Color.Info"
|
<MudProgressLinear Color="Color.Info"
|
||||||
Value="@GetLeftPercentage()"
|
Value="@GetLeftPercentage()"
|
||||||
Size="Size.Medium"
|
Size="Size.Medium"
|
||||||
Class="rounded-lg mt-2"
|
Class="rounded-lg mt-2"
|
||||||
Style="width: 100%;" />
|
Style="width: 100%;"/>
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
||||||
@GetLeftPercentage().ToString("F1")% از کل
|
@GetLeftPercentage().ToString("F1")% از کل
|
||||||
</MudText>
|
</MudText>
|
||||||
@@ -92,54 +110,37 @@
|
|||||||
</MudPaper>
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|
||||||
<MudItem xs="6">
|
|
||||||
<MudPaper Elevation="3" Class="pa-4 rounded-lg text-center" Style="background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);">
|
|
||||||
<MudStack Spacing="1" AlignItems="AlignItems.Center">
|
|
||||||
<MudIcon Icon="@Icons.Material.Filled.ChevronRight" Color="Color.Success" Size="Size.Large" />
|
|
||||||
<MudText Typo="Typo.subtitle2" Color="Color.Success">شاخه راست</MudText>
|
|
||||||
<MudText Typo="Typo.h5" Color="Color.Success" Style="font-weight: bold;">@_weeklyBalance.RightBalanceFormatted</MudText>
|
|
||||||
<MudProgressLinear Color="Color.Success"
|
|
||||||
Value="@GetRightPercentage()"
|
|
||||||
Size="Size.Medium"
|
|
||||||
Class="rounded-lg mt-2"
|
|
||||||
Style="width: 100%;" />
|
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
|
||||||
@GetRightPercentage().ToString("F1")% از کل
|
|
||||||
</MudText>
|
|
||||||
</MudStack>
|
|
||||||
</MudPaper>
|
|
||||||
</MudItem>
|
|
||||||
</MudGrid>
|
</MudGrid>
|
||||||
|
|
||||||
<!-- محاسبات کمیسیون - فشردهتر -->
|
<!-- محاسبات پاداش - فشردهتر -->
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudText Typo="Typo.subtitle1" Class="mb-2" Style="font-weight: bold;">محاسبات کمیسیون</MudText>
|
<MudText Typo="Typo.subtitle1" Class="mb-2" Style="font-weight: bold;">محاسبات پاداش</MudText>
|
||||||
<MudSimpleTable Dense="true" Hover="true" Style="background: transparent;">
|
<MudSimpleTable Dense="true" Hover="true" Style="background: transparent;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><MudText Typo="Typo.body2">اعضای جدید چپ:</MudText></td>
|
<td><MudText Typo="Typo.body2">اعضای جدید تیم اول:</MudText></td>
|
||||||
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Info"><strong>@_weeklyBalance.LeftNewMembersFormatted</strong></MudText></td>
|
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Info"><strong>@_weeklyBalance.LeftNewMembersFormatted</strong></MudText></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><MudText Typo="Typo.body2">اعضای جدید راست:</MudText></td>
|
<td><MudText Typo="Typo.body2">اعضای جدید تیم دوم:</MudText></td>
|
||||||
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Success"><strong>@_weeklyBalance.RightNewMembersFormatted</strong></MudText></td>
|
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Success"><strong>@_weeklyBalance.RightNewMembersFormatted</strong></MudText></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><MudText Typo="Typo.body2">انتقال از هفته قبل (چپ):</MudText></td>
|
<td><MudText Typo="Typo.body2">انتقال از هفته قبل (تیم اول):</MudText></td>
|
||||||
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Info"><strong>@_weeklyBalance.LeftCarryoverFormatted</strong></MudText></td>
|
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Info"><strong>@_weeklyBalance.LeftCarryoverFormatted</strong></MudText></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><MudText Typo="Typo.body2">انتقال از هفته قبل (راست):</MudText></td>
|
<td><MudText Typo="Typo.body2">انتقال از هفته قبل (تیم دوم):</MudText></td>
|
||||||
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Success"><strong>@_weeklyBalance.RightCarryoverFormatted</strong></MudText></td>
|
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Success"><strong>@_weeklyBalance.RightCarryoverFormatted</strong></MudText></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><MudText Typo="Typo.body2">حداقل تعادل (پایه کمیسیون):</MudText></td>
|
<td><MudText Typo="Typo.body2" Color="Color.Error"> امتیاز فروش کل (پایه):</MudText></td>
|
||||||
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Warning"><strong>@_weeklyBalance.MinBalanceFormatted</strong></MudText></td>
|
<td class="text-end"><MudText Typo="Typo.body1" Color="Color.Error"><strong>@_weeklyBalance.MinBalanceFormatted</strong></MudText></td>
|
||||||
</tr>
|
|
||||||
<tr style="background-color: var(--mud-palette-primary-lighten);">
|
|
||||||
<td><MudText Typo="Typo.subtitle1"><strong>کمیسیون محاسبه شده:</strong></MudText></td>
|
|
||||||
<td class="text-end"><MudText Typo="Typo.h6" Color="Color.Primary"><strong>@_weeklyBalance.CalculatedCommissionFormatted</strong></MudText></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
@* <tr style="background-color: var(--mud-palette-primary-lighten);"> *@
|
||||||
|
@* <td><MudText Typo="Typo.subtitle1"><strong>کمیسیون محاسبه شده:</strong></MudText></td> *@
|
||||||
|
@* <td class="text-end"><MudText Typo="Typo.h6" Color="Color.Primary"><strong>@_weeklyBalance.CalculatedCommissionFormatted</strong></MudText></td> *@
|
||||||
|
@* </tr> *@
|
||||||
</tbody>
|
</tbody>
|
||||||
</MudSimpleTable>
|
</MudSimpleTable>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<MudItem xs="12" md="6">
|
<MudItem xs="12" md="6">
|
||||||
<MudPaper Class="pa-8 rounded-xl" Style="background: radial-gradient(600px 280px at 120% 0, #daccff 0, transparent 60%), radial-gradient(600px 280px at -10% 100%, #ffe2f2 0, transparent 60%), linear-gradient(180deg, #fff, #fbfaff);">
|
<MudPaper Class="pa-8 rounded-xl" Style="background: radial-gradient(600px 280px at 120% 0, #daccff 0, transparent 60%), radial-gradient(600px 280px at -10% 100%, #ffe2f2 0, transparent 60%), linear-gradient(180deg, #fff, #fbfaff);">
|
||||||
<MudImage Src="images/team-meeting.jpg"
|
<MudImage Src="images/team-meeting.jpg"
|
||||||
Alt="جلسه تیم فروش و شبکهسازی"
|
Alt="جلسه تیم فروش"
|
||||||
ObjectFit="ObjectFit.Cover"
|
ObjectFit="ObjectFit.Cover"
|
||||||
ObjectPosition="ObjectPosition.Center"
|
ObjectPosition="ObjectPosition.Center"
|
||||||
Style="width:100%"
|
Style="width:100%"
|
||||||
@@ -243,7 +243,7 @@
|
|||||||
<MudItem xs="6">
|
<MudItem xs="6">
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-xl ">
|
<MudPaper Elevation="2" Class="pa-4 rounded-xl ">
|
||||||
<MudText Typo="Typo.h4" Align="Align.Center" Color="Color.Success">+۵۰٪</MudText>
|
<MudText Typo="Typo.h4" Align="Align.Center" Color="Color.Success">+۵۰٪</MudText>
|
||||||
<MudText Typo="Typo.caption" HtmlTag="div" Align="Align.Center" Color="Color.Info">رشد میانگین شبکه</MudText>
|
<MudText Typo="Typo.caption" HtmlTag="div" Align="Align.Center" Color="Color.Info">رشد میانگین تیم</MudText>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
<MudItem xs="6">
|
<MudItem xs="6">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
@using FrontOffice.Main.Utilities
|
@using FrontOffice.Main.Utilities
|
||||||
@using MudBlazor
|
@using MudBlazor
|
||||||
|
|
||||||
<PageTitle>آمار شبکه</PageTitle>
|
<PageTitle>آمار تیم</PageTitle>
|
||||||
|
|
||||||
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
||||||
<MudStack Spacing="3">
|
<MudStack Spacing="3">
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
</MudItem>
|
</MudItem>
|
||||||
</MudGrid>
|
</MudGrid>
|
||||||
|
|
||||||
<!-- تعادل شاخهها -->
|
<!-- آمار فروش تیمها -->
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudText Typo="Typo.h6" Class="mb-3">آمار جمعی فعالیت</MudText>
|
<MudText Typo="Typo.h6" Class="mb-3">آمار جمعی فعالیت</MudText>
|
||||||
<MudStack Spacing="2">
|
<MudStack Spacing="2">
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<MudIcon Icon="@Icons.Material.Filled.CardGiftcard" Size="Size.Large" Color="Color.Primary" Style="font-size: 80px;" />
|
<MudIcon Icon="@Icons.Material.Filled.CardGiftcard" Size="Size.Large" Color="Color.Primary" Style="font-size: 80px;" />
|
||||||
<MudText Typo="Typo.h5">شما هنوز پکیجی خریداری نکردهاید</MudText>
|
<MudText Typo="Typo.h5">شما هنوز پکیجی خریداری نکردهاید</MudText>
|
||||||
<MudText Typo="Typo.body1" Class="mud-text-secondary" Style="max-width: 500px;">
|
<MudText Typo="Typo.body1" Class="mud-text-secondary" Style="max-width: 500px;">
|
||||||
با خرید پکیج طلایی، به باشگاه مشتریان بپیوندید و از مزایای ویژه مانند کمیسیون هفتگی و شبکهسازی بهرهمند شوید.
|
با خرید پکیج طلایی، به باشگاه مشتریان بپیوندید و از مزایای ویژه مانند پاداش هفتگی و تیمسازی بهرهمند شوید.
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
Color="Color.Primary"
|
Color="Color.Primary"
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
FullWidth="true"
|
FullWidth="true"
|
||||||
StartIcon="@Icons.Material.Filled.AccountTree"
|
StartIcon="@Icons.Material.Filled.AccountTree"
|
||||||
OnClick="@(() => Navigation.NavigateTo(RouteConstants.Network.Statistics))">
|
OnClick="@(() => Navigation.NavigateTo(RouteConstants.Network.Statistics))">
|
||||||
مشاهده شبکه
|
مشاهده تیم
|
||||||
</MudButton>
|
</MudButton>
|
||||||
|
|
||||||
<MudButton Variant="Variant.Outlined"
|
<MudButton Variant="Variant.Outlined"
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
FullWidth="true"
|
FullWidth="true"
|
||||||
StartIcon="@Icons.Material.Filled.Payments"
|
StartIcon="@Icons.Material.Filled.Payments"
|
||||||
OnClick="@(() => Navigation.NavigateTo(RouteConstants.Commission.Dashboard))">
|
OnClick="@(() => Navigation.NavigateTo(RouteConstants.Commission.Dashboard))">
|
||||||
کمیسیونهای من
|
پاداشهای من
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
}
|
}
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
<MudItem xs="12" sm="6" md="3">
|
<MudItem xs="12" sm="6" md="3">
|
||||||
<MudPaper Outlined="true" Class="pa-4 text-center">
|
<MudPaper Outlined="true" Class="pa-4 text-center">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Group" Color="Color.Primary" Size="Size.Large" />
|
<MudIcon Icon="@Icons.Material.Filled.Group" Color="Color.Primary" Size="Size.Large" />
|
||||||
<MudText Typo="Typo.subtitle2" Class="mt-2">شبکهسازی نامحدود</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mt-2">تیمسازی نامحدود</MudText>
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">دعوت دوستان و ساخت تیم</MudText>
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">دعوت دوستان و ساخت تیم</MudText>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
@@ -172,8 +172,8 @@
|
|||||||
<MudItem xs="12" sm="6" md="3">
|
<MudItem xs="12" sm="6" md="3">
|
||||||
<MudPaper Outlined="true" Class="pa-4 text-center">
|
<MudPaper Outlined="true" Class="pa-4 text-center">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Payments" Color="Color.Success" Size="Size.Large" />
|
<MudIcon Icon="@Icons.Material.Filled.Payments" Color="Color.Success" Size="Size.Large" />
|
||||||
<MudText Typo="Typo.subtitle2" Class="mt-2">کمیسیون هفتگی</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mt-2">پاداش هفتگی</MudText>
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">دریافت سهم از فروش شبکه</MudText>
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">دریافت سهم از فروش تیم</MudText>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|
||||||
|
|||||||
@@ -78,11 +78,11 @@
|
|||||||
</MudStack>
|
</MudStack>
|
||||||
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Check" Size="Size.Small" Color="Color.Primary" />
|
<MudIcon Icon="@Icons.Material.Filled.Check" Size="Size.Small" Color="Color.Primary" />
|
||||||
<MudText Typo="Typo.caption">دریافت کمیسیون هفتگی</MudText>
|
<MudText Typo="Typo.caption">دریافت پاداش هفتگی</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Check" Size="Size.Small" Color="Color.Primary" />
|
<MudIcon Icon="@Icons.Material.Filled.Check" Size="Size.Small" Color="Color.Primary" />
|
||||||
<MudText Typo="Typo.caption">شبکهسازی نامحدود</MudText>
|
<MudText Typo="Typo.caption">تیمسازی نامحدود</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@@ -108,8 +108,8 @@
|
|||||||
<MudStack Spacing="2">
|
<MudStack Spacing="2">
|
||||||
<MudText Typo="Typo.h5" Style="color: white;">چرا پکیج طلایی؟</MudText>
|
<MudText Typo="Typo.h5" Style="color: white;">چرا پکیج طلایی؟</MudText>
|
||||||
<MudText Typo="Typo.body1" Style="color: rgba(255,255,255,0.9);">
|
<MudText Typo="Typo.body1" Style="color: rgba(255,255,255,0.9);">
|
||||||
با خرید پکیج طلایی، علاوه بر دسترسی به محصولات ویژه، میتوانید در شبکه فروش شرکت کنید
|
با خرید پکیج طلایی، علاوه بر دسترسی به محصولات ویژه، میتوانید تیم فروش خود را بسازید
|
||||||
و از کمیسیونهای هفتگی بهرهمند شوید. هر چه شبکه شما گستردهتر، درآمد شما بیشتر!
|
و از پاداشهای هفتگی بهرهمند شوید. هر چه تیم شما گستردهتر، درآمد شما بیشتر!
|
||||||
</MudText>
|
</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
{
|
{
|
||||||
<MudButtonGroup Variant="Variant.Outlined" Size="Size.Small" OverrideStyles="false">
|
<MudButtonGroup Variant="Variant.Outlined" Size="Size.Small" OverrideStyles="false">
|
||||||
<MudIconButton Icon="@Icons.Material.Filled.ArrowForward" OnClick="GoBack" Title="بازگشت" Size="Size.Small" Color="Color.Secondary" />
|
<MudIconButton Icon="@Icons.Material.Filled.ArrowForward" OnClick="GoBack" Title="بازگشت" Size="Size.Small" Color="Color.Secondary" />
|
||||||
<MudIconButton Icon="@Icons.Material.Filled.Home" OnClick="GoToMyTree" Title="درخت من" Size="Size.Small" Color="Color.Secondary" />
|
<MudIconButton Icon="@Icons.Material.Filled.Home" OnClick="GoToMyTree" Title="نمودار من" Size="Size.Small" Color="Color.Secondary" />
|
||||||
</MudButtonGroup>
|
</MudButtonGroup>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
</MudItem>
|
</MudItem>
|
||||||
<MudItem xs="12" sm="6" md="4">
|
<MudItem xs="12" sm="6" md="4">
|
||||||
<MudStack>
|
<MudStack>
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">موجودی شبکه</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">موجودی پاداش تیمی</MudText>
|
||||||
<MudText Typo="Typo.h5" Color="Color.Primary">@_walletNetwork</MudText>
|
<MudText Typo="Typo.h5" Color="Color.Primary">@_walletNetwork</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
<MudCardContent Class="d-flex flex-column align-center pa-4">
|
<MudCardContent Class="d-flex flex-column align-center pa-4">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.AccountTree" Size="Size.Large" Color="Color.Primary" />
|
<MudIcon Icon="@Icons.Material.Filled.AccountTree" Size="Size.Large" Color="Color.Primary" />
|
||||||
<MudText Typo="Typo.subtitle1" Class="mt-2">شجرهنامه</MudText>
|
<MudText Typo="Typo.subtitle1" Class="mt-2">شجرهنامه</MudText>
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">ساختار شبکه</MudText>
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">ساختار تیم</MudText>
|
||||||
</MudCardContent>
|
</MudCardContent>
|
||||||
</MudCard>
|
</MudCard>
|
||||||
</MudLink>
|
</MudLink>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</MudItem>
|
</MudItem>
|
||||||
<MudItem xs="12" sm="6" md="4">
|
<MudItem xs="12" sm="6" md="4">
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">موجودی شبکه</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">موجودی پاداش تیمی</MudText>
|
||||||
<MudText Typo="Typo.h4" Color="Color.Success">@_balances.Network</MudText>
|
<MudText Typo="Typo.h4" Color="Color.Success">@_balances.Network</MudText>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|||||||
@@ -245,7 +245,7 @@
|
|||||||
<p><strong>ماده ۲ - شرایط عضویت</strong></p>
|
<p><strong>ماده ۲ - شرایط عضویت</strong></p>
|
||||||
<p>۲-۱. کاربر با پرداخت مبلغ ۵۶ میلیون تومان (پکیج پایه)، امکان عضویت در باشگاه مشتریان را خواهد داشت.</p>
|
<p>۲-۱. کاربر با پرداخت مبلغ ۵۶ میلیون تومان (پکیج پایه)، امکان عضویت در باشگاه مشتریان را خواهد داشت.</p>
|
||||||
<p>۲-۲. پس از امضای این قرارداد، لینک دعوت کاربر فعال خواهد شد.</p>
|
<p>۲-۲. پس از امضای این قرارداد، لینک دعوت کاربر فعال خواهد شد.</p>
|
||||||
<p>۲-۳. کاربر میتواند حداکثر ۲ نفر را مستقیماً دعوت کند (یک نفر در شاخه چپ و یک نفر در شاخه راست).</p>
|
<p>۲-۳. کاربر میتواند حداکثر ۲ نفر را مستقیماً دعوت کند (یک نفر در تیم اول و یک نفر در تیم دوم).</p>
|
||||||
|
|
||||||
<p><strong>ماده ۳ - تعهدات کاربر</strong></p>
|
<p><strong>ماده ۳ - تعهدات کاربر</strong></p>
|
||||||
<p>۳-۱. کاربر متعهد است از لینک دعوت فقط برای معرفی افراد واقعی استفاده کند.</p>
|
<p>۳-۱. کاربر متعهد است از لینک دعوت فقط برای معرفی افراد واقعی استفاده کند.</p>
|
||||||
@@ -253,8 +253,8 @@
|
|||||||
<p>۳-۳. کاربر حق انتقال یا فروش عضویت خود را ندارد.</p>
|
<p>۳-۳. کاربر حق انتقال یا فروش عضویت خود را ندارد.</p>
|
||||||
|
|
||||||
<p><strong>ماده ۴ - حقوق کاربر</strong></p>
|
<p><strong>ماده ۴ - حقوق کاربر</strong></p>
|
||||||
<p>۴-۱. دریافت پاداش معرفی به ازای هر عضو جدید که از طریق شبکه کاربر عضو شود.</p>
|
<p>۴-۱. دریافت پاداش معرفی به ازای هر عضو جدید که از طریق تیم کاربر عضو شود.</p>
|
||||||
<p>۴-۲. دسترسی به داشبورد مدیریت شبکه و مشاهده وضعیت زیرمجموعهها.</p>
|
<p>۴-۲. دسترسی به داشبورد مدیریت تیم و مشاهده وضعیت اعضای تیم.</p>
|
||||||
<p>۴-۳. امکان برداشت موجودی کیف پول طبق قوانین سایت.</p>
|
<p>۴-۳. امکان برداشت موجودی کیف پول طبق قوانین سایت.</p>
|
||||||
|
|
||||||
<p><strong>ماده ۵ - شرایط فسخ</strong></p>
|
<p><strong>ماده ۵ - شرایط فسخ</strong></p>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<MudText Typo="Typo.h5">کارا بازار سلامت</MudText>
|
<MudText Typo="Typo.h5">کارا بازار سلامت</MudText>
|
||||||
</div>
|
</div>
|
||||||
<MudText Typo="Typo.body2" Class="footer-description">
|
<MudText Typo="Typo.body2" Class="footer-description">
|
||||||
پلتفرم هوشمند ساخت شبکههای فروش با امکانات پیشرفته مدیریت تیم، محاسبه کارمزد و گزارشگیری جامع.
|
پلتفرم هوشمند ساخت تیمهای فروش با امکانات پیشرفته مدیریت تیم، محاسبه کارمزد و گزارشگیری جامع.
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudStack Row="true" Spacing="2" Class="social-links">
|
<MudStack Row="true" Spacing="2" Class="social-links">
|
||||||
<MudIconButton Icon="@Icons.Custom.Brands.Telegram"
|
<MudIconButton Icon="@Icons.Custom.Brands.Telegram"
|
||||||
|
|||||||
Reference in New Issue
Block a user