From fcbc7639c1815aa2215e1de707dd3a06751b8ade Mon Sep 17 00:00:00 2001 From: sayaliparab Date: Fri, 12 Jul 2024 16:57:11 +0530 Subject: [PATCH] report --- app/Exports/ReportExport.php | 1 - resources/views/exports/report.blade.php | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/Exports/ReportExport.php b/app/Exports/ReportExport.php index d49794f..1da8fb9 100644 --- a/app/Exports/ReportExport.php +++ b/app/Exports/ReportExport.php @@ -50,7 +50,6 @@ class ReportExport implements FromView $data = $query->get(); } elseif ($this->reportType === 'Total Users') { $query = IamPrincipal::query()->where('principal_type_xid',3); - // $query = Subscriptions::query()->where('is_cancelled_subscription', 1); if (!empty($this->states)) { $query->whereIn('state_xid', $this->states); diff --git a/resources/views/exports/report.blade.php b/resources/views/exports/report.blade.php index 680dbce..1ccea69 100644 --- a/resources/views/exports/report.blade.php +++ b/resources/views/exports/report.blade.php @@ -11,7 +11,7 @@ @if ($data->isEmpty())

No data available

@else - + @if ($reportType === 'Total Subscribed') @@ -20,7 +20,7 @@ - + @@ -40,10 +40,10 @@ - - + + - + @@ -68,7 +68,7 @@ - + @@ -93,7 +93,7 @@ - + @@ -118,7 +118,7 @@ - + @@ -144,7 +144,7 @@ - + @@ -172,7 +172,7 @@ - +
Subscription ID User Name StateCreated AtSubscription Date & Time
Sr No.User IDUser NameCustomer IDCustomer Name StateCreated AtCustomer Join Date & Time
Restaurant Name Customer Name StateCreated AtRedemption Date & Time
Restaurant Name Customer Name StateCreated AtRedemption Date & Time
Email State Subscription StatusCancelled AtSubscription Cancel Date & Time
Email Phone Number StateReferred Date TimeReferred Date & Time
Email Phone number StateReferred Date TimeReferred Date & Time