diff --git a/app/Http/Controllers/FrontOffice/FrontOfficeControllerController.php b/app/Http/Controllers/FrontOffice/FrontOfficeControllerController.php new file mode 100644 index 0000000..3b43af1 --- /dev/null +++ b/app/Http/Controllers/FrontOffice/FrontOfficeControllerController.php @@ -0,0 +1,114 @@ +q; + + if (!$keyword) { + return response()->json([ + 'status' => false, + 'message' => 'Input kosong' + ]); + } + + $data = TransaksiParkir::where('no_pol', $keyword) + ->orWhere('no_pol', $keyword) + ->first(); + + if (!$data) { + return response()->json([ + 'status' => false, + 'message' => 'Data tidak ditemukan' + ]); + } + + return response()->json([ + 'status' => true, + 'data' => $data + ]); + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function show($id) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function edit($id) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param int $id + * @return \Illuminate\Http\Response + */ + public function update(Request $request, $id) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function destroy($id) + { + // + } +} diff --git a/resources/views/layouts/partial/horizontal-menu.blade.php b/resources/views/layouts/partial/horizontal-menu.blade.php index 6090a6e..766d76c 100644 --- a/resources/views/layouts/partial/horizontal-menu.blade.php +++ b/resources/views/layouts/partial/horizontal-menu.blade.php @@ -82,7 +82,7 @@ + {{--