Skip to content

Commit 2012475

Browse files
committed
Update config and translations for all phases
1 parent 0b4dee3 commit 2012475

2 files changed

Lines changed: 234 additions & 0 deletions

File tree

config/sapb1-filament.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,35 @@
107107
|
108108
*/
109109

110+
/*
111+
|--------------------------------------------------------------------------
112+
| Notifications
113+
|--------------------------------------------------------------------------
114+
|
115+
| Configure Filament database notifications for SAP events.
116+
|
117+
*/
118+
119+
'notifications' => [
120+
'enabled' => env('SAPB1_FILAMENT_NOTIFICATIONS', false),
121+
'document_events' => env('SAPB1_FILAMENT_NOTIFY_DOCUMENTS', false),
122+
'payment_events' => env('SAPB1_FILAMENT_NOTIFY_PAYMENTS', false),
123+
'approval_events' => env('SAPB1_FILAMENT_NOTIFY_APPROVALS', false),
124+
'recipient_model' => env('SAPB1_FILAMENT_NOTIFY_MODEL', 'App\\Models\\User'),
125+
'recipient_role' => env('SAPB1_FILAMENT_NOTIFY_ROLE'),
126+
],
127+
128+
/*
129+
|--------------------------------------------------------------------------
130+
| Authorization
131+
|--------------------------------------------------------------------------
132+
|
133+
| Configure authorization for the admin panel.
134+
|
135+
*/
136+
110137
'authorization' => [
138+
'enabled' => env('SAPB1_FILAMENT_AUTH_ENABLED', false),
111139
'gate' => env('SAPB1_FILAMENT_AUTH_GATE', 'sapb1-admin'),
112140
'super_admin_role' => env('SAPB1_FILAMENT_SUPER_ADMIN_ROLE', 'super-admin'),
113141
],

resources/lang/en/sapb1-filament.php

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,56 @@
8989
],
9090
],
9191

92+
/*
93+
|--------------------------------------------------------------------------
94+
| Notifications
95+
|--------------------------------------------------------------------------
96+
*/
97+
98+
'notifications' => [
99+
'document' => [
100+
'created_title' => 'Document Created',
101+
'created_body' => ':entity #:doc_entry was created successfully',
102+
'closed_title' => 'Document Closed',
103+
'closed_body' => ':entity #:doc_entry has been closed',
104+
'cancelled_title' => 'Document Cancelled',
105+
'cancelled_body' => ':entity #:doc_entry has been cancelled',
106+
],
107+
'payment' => [
108+
'received_title' => 'Payment Received',
109+
'received_body' => 'Payment of :amount received from :card_code',
110+
],
111+
'approval' => [
112+
'requested_title' => 'Approval Requested',
113+
'requested_body' => ':object_type #:object_entry requires approval',
114+
'completed_title' => 'Approval Completed',
115+
'completed_body' => ':object_type #:object_entry approval :status',
116+
],
117+
],
118+
92119
/*
93120
|--------------------------------------------------------------------------
94121
| Resources
95122
|--------------------------------------------------------------------------
96123
*/
97124

98125
'resources' => [
126+
'common' => [
127+
'export_csv' => 'Export CSV',
128+
'actions' => [
129+
'close' => 'Close',
130+
'attachment_file' => 'File',
131+
'upload_attachment' => 'Upload Attachment',
132+
'view_document_flow' => 'Document Flow',
133+
'document_flow_title' => 'Document Flow',
134+
'no_document_flow' => 'No document flow available',
135+
],
136+
'notifications' => [
137+
'attachment_uploaded' => 'Attachment uploaded successfully',
138+
'attachment_failed' => 'Failed to upload attachment',
139+
'flow_failed' => 'Failed to load document flow',
140+
],
141+
],
99142
'audit_log' => [
100143
'navigation_label' => 'Audit Logs',
101144
'model_label' => 'Audit Log',
@@ -123,6 +166,13 @@
123166
'from' => 'From',
124167
'until' => 'Until',
125168
],
169+
'tabs' => [
170+
'all' => 'All',
171+
'today' => 'Today',
172+
'created' => 'Created',
173+
'updated' => 'Updated',
174+
'deleted' => 'Deleted',
175+
],
126176
'actions' => [
127177
'export' => 'Export',
128178
],
@@ -185,6 +235,12 @@
185235
'status' => 'Status',
186236
'sync_type' => 'Sync Type',
187237
],
238+
'tabs' => [
239+
'all' => 'All',
240+
'running' => 'Running',
241+
'failed' => 'Failed',
242+
'today' => 'Today',
243+
],
188244
],
189245
'tenant' => [
190246
'navigation_label' => 'Tenants',
@@ -255,6 +311,35 @@
255311
'active' => 'Active',
256312
'inactive' => 'Inactive',
257313
],
314+
'tabs' => [
315+
'all' => 'All',
316+
'customers' => 'Customers',
317+
'suppliers' => 'Suppliers',
318+
'leads' => 'Leads',
319+
'with_balance' => 'With Balance',
320+
],
321+
'infolist' => [
322+
'details' => 'Details',
323+
'contact' => 'Contact',
324+
'finance' => 'Finance',
325+
'open_orders_balance' => 'Open Orders Balance',
326+
'open_delivery_balance' => 'Open Delivery Balance',
327+
],
328+
'actions' => [
329+
'bulk_activate' => 'Activate Selected',
330+
'bulk_deactivate' => 'Deactivate Selected',
331+
],
332+
'widgets' => [
333+
'total' => 'Total Partners',
334+
'customers' => 'Customers',
335+
'suppliers' => 'Suppliers',
336+
'outstanding_balance' => 'Outstanding Balance',
337+
],
338+
'notifications' => [
339+
'bulk_action_count' => ':count partners updated',
340+
'bulk_activate_complete' => 'Partners activated successfully',
341+
'bulk_deactivate_complete' => 'Partners deactivated successfully',
342+
],
258343
],
259344
'item' => [
260345
'navigation_label' => 'Items',
@@ -295,6 +380,35 @@
295380
'inventory_item' => 'Inventory Item',
296381
'has_stock' => 'Has Stock',
297382
],
383+
'tabs' => [
384+
'all' => 'All',
385+
'active' => 'Active',
386+
'in_stock' => 'In Stock',
387+
'out_of_stock' => 'Out of Stock',
388+
'sales_items' => 'Sales Items',
389+
],
390+
'infolist' => [
391+
'details' => 'Details',
392+
'stock' => 'Stock',
393+
],
394+
'actions' => [
395+
'bulk_activate' => 'Activate Selected',
396+
'bulk_deactivate' => 'Deactivate Selected',
397+
'check_stock' => 'Check Stock',
398+
'check_stock_title' => 'Stock Information',
399+
'warehouse_breakdown' => 'Warehouse Breakdown',
400+
],
401+
'widgets' => [
402+
'total_items' => 'Total Items',
403+
'active_items' => 'Active Items',
404+
'zero_stock' => 'Zero Stock',
405+
],
406+
'notifications' => [
407+
'bulk_action_count' => ':count items updated',
408+
'bulk_activate_complete' => 'Items activated successfully',
409+
'bulk_deactivate_complete' => 'Items deactivated successfully',
410+
'stock_check_failed' => 'Failed to check stock',
411+
],
298412
],
299413
'order' => [
300414
'navigation_label' => 'Sales Orders',
@@ -329,13 +443,59 @@
329443
'from' => 'From',
330444
'until' => 'Until',
331445
],
446+
'tabs' => [
447+
'all' => 'All',
448+
'open' => 'Open',
449+
'closed' => 'Closed',
450+
'this_month' => 'This Month',
451+
'overdue' => 'Overdue',
452+
],
453+
'infolist' => [
454+
'details' => 'Details',
455+
'lines' => 'Lines',
456+
'item_description' => 'Description',
457+
'line_total' => 'Line Total',
458+
],
332459
'actions' => [
333460
'close' => 'Close',
334461
'close_confirm_title' => 'Close Order',
335462
'close_confirm_description' => 'Are you sure you want to close this order? This action cannot be undone.',
336463
'cancel' => 'Cancel',
337464
'cancel_confirm_title' => 'Cancel Order',
338465
'cancel_confirm_description' => 'Are you sure you want to cancel this order? This action cannot be undone.',
466+
'bulk_close' => 'Close Selected',
467+
'bulk_close_confirm_title' => 'Close Orders',
468+
'bulk_close_confirm_description' => 'Are you sure you want to close the selected orders?',
469+
'bulk_cancel' => 'Cancel Selected',
470+
'bulk_cancel_confirm_title' => 'Cancel Orders',
471+
'bulk_cancel_confirm_description' => 'Are you sure you want to cancel the selected orders?',
472+
'copy_to_delivery' => 'Copy to Delivery',
473+
'copy_to_delivery_confirm_title' => 'Copy to Delivery',
474+
'copy_to_delivery_confirm_description' => 'Create a delivery from this order?',
475+
'copy_to_invoice' => 'Copy to Invoice',
476+
'copy_to_invoice_confirm_title' => 'Copy to Invoice',
477+
'copy_to_invoice_confirm_description' => 'Create an invoice from this order?',
478+
],
479+
'widgets' => [
480+
'total_this_month' => 'Total This Month',
481+
'open_orders' => 'Open Orders',
482+
'open_value' => 'Open Value',
483+
'avg_value' => 'Average Value',
484+
'by_status' => 'Orders by Status',
485+
'status_open' => 'Open',
486+
'status_closed' => 'Closed',
487+
'status_cancelled' => 'Cancelled',
488+
],
489+
'notifications' => [
490+
'bulk_action_count' => ':count orders updated',
491+
'bulk_close_complete' => 'Orders closed successfully',
492+
'bulk_cancel_complete' => 'Orders cancelled successfully',
493+
'delivery_created' => 'Delivery Created',
494+
'delivery_created_body' => 'Delivery #:doc_num created from order',
495+
'delivery_failed' => 'Failed to create delivery',
496+
'invoice_created' => 'Invoice Created',
497+
'invoice_created_body' => 'Invoice #:doc_num created from order',
498+
'invoice_failed' => 'Failed to create invoice',
339499
],
340500
],
341501
'invoice' => [
@@ -377,10 +537,56 @@
377537
'unpaid' => 'Unpaid',
378538
'paid' => 'Paid',
379539
],
540+
'tabs' => [
541+
'all' => 'All',
542+
'open' => 'Open',
543+
'unpaid' => 'Unpaid',
544+
'overdue' => 'Overdue',
545+
'this_month' => 'This Month',
546+
],
547+
'infolist' => [
548+
'details' => 'Details',
549+
'lines' => 'Lines',
550+
'item_description' => 'Description',
551+
'line_total' => 'Line Total',
552+
],
380553
'actions' => [
381554
'cancel' => 'Cancel',
382555
'cancel_confirm_title' => 'Cancel Invoice',
383556
'cancel_confirm_description' => 'Are you sure you want to cancel this invoice? This action cannot be undone.',
557+
'bulk_cancel' => 'Cancel Selected',
558+
'bulk_cancel_confirm_title' => 'Cancel Invoices',
559+
'bulk_cancel_confirm_description' => 'Are you sure you want to cancel the selected invoices?',
560+
'create_credit_note' => 'Credit Note',
561+
'credit_note_confirm_title' => 'Create Credit Note',
562+
'credit_note_confirm_description' => 'Create a credit note for this invoice?',
563+
'record_payment' => 'Record Payment',
564+
'payment_amount' => 'Amount',
565+
'payment_method' => 'Payment Method',
566+
'account_code' => 'Account Code',
567+
'payment_methods' => [
568+
'cash' => 'Cash',
569+
'check' => 'Check',
570+
'transfer' => 'Bank Transfer',
571+
],
572+
],
573+
'widgets' => [
574+
'total_this_month' => 'Total This Month',
575+
'total_revenue' => 'Total Revenue',
576+
'outstanding' => 'Outstanding',
577+
'overdue' => 'Overdue',
578+
'aging_chart' => 'Aging Chart',
579+
'aging_current' => 'Current',
580+
],
581+
'notifications' => [
582+
'bulk_action_count' => ':count invoices updated',
583+
'bulk_cancel_complete' => 'Invoices cancelled successfully',
584+
'payment_recorded' => 'Payment Recorded',
585+
'payment_recorded_body' => 'Payment of :amount recorded for invoice #:doc_num',
586+
'payment_failed' => 'Failed to record payment',
587+
'credit_note_created' => 'Credit Note Created',
588+
'credit_note_created_body' => 'Credit note created successfully',
589+
'credit_note_failed' => 'Failed to create credit note',
384590
],
385591
],
386592
],

0 commit comments

Comments
 (0)