5cec4e9313
- Added role-based permission checks in NavMenu for dashboard and management links. - Created ManualPaymentDialog for creating and managing manual payments. - Implemented TransactionDetailsDialog for displaying transaction details. - Developed Transactions page for viewing and filtering transactions. - Introduced RolePermissionsDialog for managing role permissions. - Established AuthorizationService to handle permission checks and user roles. - Enhanced UI components with MudBlazor for better user experience.
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
@namespace BackOffice.Pages.Payment.Components
|
|
|
|
@using MudBlazor
|
|
|
|
<MudDialog>
|
|
<DialogContent>
|
|
@if (Model is not null)
|
|
{
|
|
<MudStack Spacing="2">
|
|
<MudText Typo="Typo.h6">جزئیات تراکنش</MudText>
|
|
<MudText Typo="Typo.body2">شناسه: @Model.Id</MudText>
|
|
<MudText Typo="Typo.body2">RefId: @Model.RefId</MudText>
|
|
<MudText Typo="Typo.body2">مبلغ: @Model.Amount.ToString("N0") ریال</MudText>
|
|
<MudText Typo="Typo.body2">وضعیت: @StatusText</MudText>
|
|
<MudText Typo="Typo.body2">تاریخ پرداخت: @Model.PaymentDate.ToLocalTime().MiladiToJalaliWithTime()</MudText>
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Model.BankReferenceId))
|
|
{
|
|
<MudText Typo="Typo.body2">BankReferenceId: @Model.BankReferenceId</MudText>
|
|
}
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Model.TrackingCode))
|
|
{
|
|
<MudText Typo="Typo.body2">TrackingCode: @Model.TrackingCode</MudText>
|
|
}
|
|
|
|
@if (Model.PaymentFailed && !string.IsNullOrWhiteSpace(Model.PaymentFailedReason))
|
|
{
|
|
<MudAlert Severity="Severity.Error">
|
|
دلیل خطا: @Model.PaymentFailedReason
|
|
</MudAlert>
|
|
}
|
|
</MudStack>
|
|
}
|
|
</DialogContent>
|
|
<DialogActions>
|
|
<MudButton Variant="Variant.Outlined" Color="Color.Default" OnClick="Close">
|
|
بستن
|
|
</MudButton>
|
|
</DialogActions>
|
|
</MudDialog>
|
|
|