Neustrukturierung Customer / Lead / Booking Phase 2
This commit is contained in:
parent
313f0dbf4e
commit
6df9c401af
69 changed files with 3809 additions and 374 deletions
|
|
@ -10,6 +10,7 @@ use Carbon\Carbon;
|
|||
use App\Models\Lead;
|
||||
use App\Models\Status;
|
||||
use App\Services\Util;
|
||||
use App\Services\ReportDateFilterService;
|
||||
use App\Models\Booking;
|
||||
use App\Models\LeadMail;
|
||||
use App\Models\FewoLodging;
|
||||
|
|
@ -57,12 +58,12 @@ class ReportLeadsController extends Controller
|
|||
$query->where('...?', '=', Request::get('filter_option_leads_id'));
|
||||
}
|
||||
*/
|
||||
if(Request::get('filter_date_from') != ""){
|
||||
$date_from = Carbon::parse(Request::get('filter_date_from'))->format("Y-m-d");
|
||||
$date_from = ReportDateFilterService::parseDate(Request::get('filter_date_from'), 'report leads date from');
|
||||
if($date_from){
|
||||
$query->where("request_date", '>=', $date_from);
|
||||
}
|
||||
if(Request::get('filter_date_to') != ""){
|
||||
$date_to = Carbon::parse(Request::get('filter_date_to'))->format("Y-m-d");
|
||||
$date_to = ReportDateFilterService::parseDate(Request::get('filter_date_to'), 'report leads date to');
|
||||
if($date_to){
|
||||
$query->where("request_date", '<=', $date_to);
|
||||
}
|
||||
return $query;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue