diff --git a/app/Exports/customer_export.php b/app/Exports/customer_export.php index 42ea15e..9f48382 100644 --- a/app/Exports/customer_export.php +++ b/app/Exports/customer_export.php @@ -30,7 +30,7 @@ class customer_export implements FromCollection , WithHeadings 'first_name' => $customer->first_name, 'last_name' => $customer->last_name, 'email_address' => $customer->email_address, - 'date_of_birth'=> \Carbon\Carbon::parse($customer->date_of_birth)->format('m-d-Y'), + 'date_of_birth'=> \Carbon\Carbon::parse($customer->date_of_birth)->format('m/d/Y'), 'state_xid' => $customer->state->name ?? '', // Access the state name and handle null 'phone_number' => $customer->phone_number, ]; diff --git a/app/Exports/customer_export_selected.php b/app/Exports/customer_export_selected.php index 56aaa48..4643cbc 100644 --- a/app/Exports/customer_export_selected.php +++ b/app/Exports/customer_export_selected.php @@ -42,7 +42,7 @@ class customer_export_selected implements FromCollection, WithHeadings 'first_name' => $customer->first_name, 'last_name' => $customer->last_name, 'email_address' => $customer->email_address, - 'date_of_birth' => \Carbon\Carbon::parse($customer->date_of_birth)->format('m-d-Y'), // Format the date + 'date_of_birth' => \Carbon\Carbon::parse($customer->date_of_birth)->format('m/d/Y'), // Format the date 'state_xid' => $customer->state->name ?? '', // Access the state name and handle null 'phone_number' => $customer->phone_number, ]; diff --git a/resources/views/Admin/pages/manage_users/manage_customer/customer.blade.php b/resources/views/Admin/pages/manage_users/manage_customer/customer.blade.php index 4e94c34..66f90d8 100644 --- a/resources/views/Admin/pages/manage_users/manage_customer/customer.blade.php +++ b/resources/views/Admin/pages/manage_users/manage_customer/customer.blade.php @@ -83,7 +83,10 @@ $currentPage = 'manage-customer';