From a4365e5c332d0d7b8cce1ee9d75a2a2e1ee77fce Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Mar 2022 18:06:21 +0800 Subject: [PATCH] fix active customer list --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index d22f7c39..6f765b8a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -217,7 +217,7 @@ Route::get('/customers/active/{active_start}/{active_end}/{inactive_start?}/{ina }); })->whereNotIn('id', $activeCompanies)->get(); - echo 'List of customers active between '.\Carbon\Carbon::parse($active_start)->format('d/m/Y'). ' - '.\Carbon\Carbon::parse($active_end)->format('d/m/Y').' & inactive between '.\Carbon\Carbon::parse($inactive_start)->format('d/m/Y'). ' - '.\Carbon\Carbon::parse($inactive_end)->format('d/m/Y'); + echo '

List of customers active between '.\Carbon\Carbon::parse($active_start)->format('d/m/Y'). ' - '.\Carbon\Carbon::parse($active_end)->format('d/m/Y').' & inactive between '.\Carbon\Carbon::parse($inactive_start)->format('d/m/Y'). ' - '.\Carbon\Carbon::parse($inactive_end)->format('d/m/Y').'

'; foreach ($companies as $key => $company){ $connection = $company->inviters()->withPivot('invitee_reference')->first(); $marking = $connection ? $connection->pivot->invitee_reference:'';