src/Http/Controllers/JenisSekolahController.php 1 location
|
@@ 46-52 (lines=7) @@
|
| 43 |
|
*/ |
| 44 |
|
public function index(Request $request) |
| 45 |
|
{ |
| 46 |
|
if (request()->has('sort')) { |
| 47 |
|
list($sortCol, $sortDir) = explode('|', request()->sort); |
| 48 |
|
|
| 49 |
|
$query = $this->jenis_sekolah->orderBy($sortCol, $sortDir); |
| 50 |
|
} else { |
| 51 |
|
$query = $this->jenis_sekolah->orderBy('id', 'asc'); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
if ($request->exists('filter')) { |
| 55 |
|
$query->where(function($q) use($request) { |
src/Http/Controllers/ProdiSekolahController.php 1 location
|
@@ 53-59 (lines=7) @@
|
| 50 |
|
*/ |
| 51 |
|
public function index(Request $request) |
| 52 |
|
{ |
| 53 |
|
if (request()->has('sort')) { |
| 54 |
|
list($sortCol, $sortDir) = explode('|', request()->sort); |
| 55 |
|
|
| 56 |
|
$query = $this->prodi_sekolah->orderBy($sortCol, $sortDir); |
| 57 |
|
} else { |
| 58 |
|
$query = $this->prodi_sekolah->orderBy('id', 'asc'); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
if ($request->exists('filter')) { |
| 62 |
|
$query->where(function($q) use($request) { |
src/Http/Controllers/SekolahController.php 1 location
|
@@ 61-67 (lines=7) @@
|
| 58 |
|
*/ |
| 59 |
|
public function index(Request $request) |
| 60 |
|
{ |
| 61 |
|
if (request()->has('sort')) { |
| 62 |
|
list($sortCol, $sortDir) = explode('|', request()->sort); |
| 63 |
|
|
| 64 |
|
$query = $this->sekolah->orderBy($sortCol, $sortDir); |
| 65 |
|
} else { |
| 66 |
|
$query = $this->sekolah->orderBy('id', 'asc'); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if ($request->exists('filter')) { |
| 70 |
|
$query->where(function($q) use($request) { |