Files
BackOffice/src/BackOffice/Pages/Payment/Components/TransactionDetailsDialog.razor
T
masoodafar-web 5cec4e9313 feat: Implement role-based access control and manual payment management
- 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.
2025-12-05 17:27:23 +03:30

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>