|
|
|
|
|
|
|
|
$date = $request->date; |
|
|
$date = $request->date; |
|
|
|
|
|
|
|
|
$compound = Compound::with('Faulty', 'Department', 'DeedLaw') |
|
|
$compound = Compound::with('Faulty', 'Department', 'DeedLaw') |
|
|
->where(function($q) use ($jenis){ |
|
|
|
|
|
|
|
|
|
|
|
//filter by jenis |
|
|
|
|
|
$q->where('jenis', $jenis)->orWhere('jenis_n', $jenis); |
|
|
|
|
|
|
|
|
|
|
|
})->where(function($q1) use ($notice, $ic, $date, $jalan, $taman, $kawasan) { |
|
|
|
|
|
|
|
|
->where(function($q1) use ($notice, $ic, $date, $jalan, $taman, $kawasan) { |
|
|
|
|
|
|
|
|
//filter by date |
|
|
//filter by date |
|
|
if(!empty($date) && $date != '-'){ |
|
|
if(!empty($date) && $date != '-'){ |