2025-10-04 17:17:53 +03:30
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hesabix_ui/l10n/app_localizations.dart';
|
|
|
|
|
import '../../core/auth_store.dart';
|
|
|
|
|
import '../../widgets/permission/access_denied_page.dart';
|
|
|
|
|
|
|
|
|
|
class InvoicePage extends StatefulWidget {
|
|
|
|
|
final int businessId;
|
|
|
|
|
final AuthStore authStore;
|
|
|
|
|
|
|
|
|
|
const InvoicePage({
|
|
|
|
|
super.key,
|
|
|
|
|
required this.businessId,
|
|
|
|
|
required this.authStore,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
State<InvoicePage> createState() => _InvoicePageState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _InvoicePageState extends State<InvoicePage> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final t = AppLocalizations.of(context);
|
|
|
|
|
|
|
|
|
|
if (!widget.authStore.canReadSection('invoices')) {
|
|
|
|
|
return AccessDeniedPage(message: t.accessDenied);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
|
body: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Icon(
|
|
|
|
|
Icons.receipt,
|
|
|
|
|
size: 80,
|
2025-10-05 02:33:08 +03:30
|
|
|
color: Theme.of(context).colorScheme.primary.withValues(alpha: 0.6),
|
2025-10-04 17:17:53 +03:30
|
|
|
),
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
Text(
|
|
|
|
|
t.invoice,
|
|
|
|
|
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
|
2025-10-05 02:33:08 +03:30
|
|
|
color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.7),
|
2025-10-04 17:17:53 +03:30
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 16),
|
|
|
|
|
Text(
|
|
|
|
|
'صفحه فاکتور در حال توسعه است',
|
|
|
|
|
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
|
2025-10-05 02:33:08 +03:30
|
|
|
color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.5),
|
2025-10-04 17:17:53 +03:30
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|