diff --git a/assets/css/custom.css b/assets/css/custom.css index 1012e45..31512f2 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -111,7 +111,7 @@ body { /* Print Styles */ @media print { - .sidebar, .navbar, .no-print, .btn, .card form { + .sidebar, .navbar, .no-print, .btn, .card form, header, .breadcrumb, footer { display: none !important; } body { @@ -121,7 +121,9 @@ body { } .main-content { margin-left: 0 !important; + margin-right: 0 !important; width: 100% !important; + padding: 0 !important; } .card { box-shadow: none !important; @@ -136,4 +138,4 @@ body { max-width: 100% !important; height: auto !important; } -} +} \ No newline at end of file diff --git a/customer_statement.php b/customer_statement.php index 319807e..d9cb4b3 100644 --- a/customer_statement.php +++ b/customer_statement.php @@ -92,6 +92,14 @@ foreach ($transactions as &$t) { $t['running_balance'] = $balance; } +// Fallback values if database is empty +$display_company_name = ($lang === 'ar' ? ($company_info['name_ar'] ?: $company_info['name_en']) : $company_info['name_en']) ?: 'Laundry Brand'; +$display_address = ($lang === 'ar' ? ($company_info['address_ar'] ?: $company_info['address_en']) : $company_info['address_en']); +$display_phone = $company_info['phone']; +$display_email = $company_info['email']; +$display_vat = $company_info['vat_no'] ?: $company_info['vat_number']; +$display_ctr = $company_info['ctr_no']; + ?>
- = is_arabic() ? ($company_info['address_ar'] ?? '') : ($company_info['address_en'] ?? '') ?>
- = __('phone') ?>: = $company_info['phone'] ?? '' ?> | = __('email') ?>: = $company_info['email'] ?? '' ?>
-
- = __('vat_no') ?>: = $company_info['vat_no'] ?>
+
= __('date') ?>: = date('d/m/Y') ?>
+= __('cashier') ?>: = htmlspecialchars($_SESSION['full_name'] ?? 'System Admin') ?>
-+
= $from_date ? __('from_date') . ': ' . date('d/m/Y', strtotime($from_date)) : '' ?> = $to_date ? ' ' . __('to_date') . ': ' . date('d/m/Y', strtotime($to_date)) : '' ?>
@@ -161,9 +188,9 @@ foreach ($transactions as &$t) {= $customer['phone'] ?> | = $customer['email'] ?>
+= $customer['phone'] ?> = $customer['email'] ? ' | ' . $customer['email'] : '' ?>
= $customer['phone'] ?> | = $customer['email'] ?>
+= $customer['phone'] ?> = $customer['email'] ? ' | ' . $customer['email'] : '' ?>