update
							parent
							
								
									e6360f7612
								
							
						
					
					
						commit
						a96b603102
					
				|  | @ -64,14 +64,25 @@ class FrontController extends Controller | |||
|     } | ||||
|     function dataset() { | ||||
|         $data = []; | ||||
| 
 | ||||
|         if(@request()->key){ | ||||
|             $data['dataset'] = Dataset::where('name','like','%'.request()->key.'%')->orderBy('DatasetId','DESC')->paginate(10);     | ||||
|         }else{ | ||||
|             $data['dataset'] = Dataset::orderBy('DatasetId','DESC')->paginate(10); | ||||
|         } | ||||
| 
 | ||||
|         $data['template'] = Template::simplePaginate(12); | ||||
|         $data['instansi'] = Instansi::all(); | ||||
|         $data['dataset'] = Dataset::orderBy('DatasetId','DESC')->paginate(10); | ||||
|          | ||||
|         return view('dataset',$data); | ||||
|     } | ||||
|     function datasetTambahan() { | ||||
|         $data = []; | ||||
|         if(@request()->key){ | ||||
|             $data['dataset'] = DatasetTambahan::where('name','like','%'.request()->key.'%')->orderBy('DatasetTambahanId','DESC')->paginate(10);     | ||||
|         }else{ | ||||
|             $data['dataset'] = DatasetTambahan::orderBy('DatasetTambahanId','DESC')->paginate(10); | ||||
|         } | ||||
|         $data['instansi'] = Instansi::all(); | ||||
|         return view('dataset-tambahan',$data); | ||||
|     } | ||||
|  |  | |||
|  | @ -10,9 +10,9 @@ | |||
|       </div> | ||||
|     </div> | ||||
|     <div> | ||||
|         <form action=""> | ||||
|         <form action="" method="GET"> | ||||
|             <div class="relative w-full"> | ||||
|                 <input type="text" placeholder="Data Apa yang kamu cari ?" style="border:none;" class="w-full placeholder-[#eee] pr-16 py-5 px-5 shadow-lg rounded-full focus:outline-none"/> | ||||
|                 <input type="text" name="key" placeholder="Data Apa yang kamu cari ?" style="border:none;" class="w-full placeholder-[#eee] pr-16 py-5 px-5 shadow-lg rounded-full focus:outline-none"/> | ||||
|                 <button  class="absolute top-15.5 right-0 text-white -translate-y-1/2 px-6 py-5 rounded-full" style="background: #E9811A;"> | ||||
|                     <i class="ri-search-line"></i> | ||||
|                 </button> | ||||
|  | @ -22,7 +22,7 @@ | |||
|   </section> | ||||
|     <section class="container relative py-20 px-5"> | ||||
|         <div class="flex md:flex-row gap-6"> | ||||
|             <div class="bg-white text-center h-full rounded-[20px] shadow-lg p-5 py-10 gap-3 md:w-1/4"> | ||||
|             <div class="bg-white text-center h-full rounded-[20px] shadow-lg p-5 py-10 gap-3 md:w-1/4 hidden"> | ||||
|                 <div class="flex justify-between"> | ||||
|                     <div> | ||||
|                         <h1 class="bold">Filter</h1> | ||||
|  |  | |||
|  | @ -10,9 +10,9 @@ | |||
|       </div> | ||||
|     </div> | ||||
|     <div> | ||||
|         <form action=""> | ||||
|         <form action="" method="GET"> | ||||
|             <div class="relative w-full"> | ||||
|                 <input type="text" placeholder="Data Apa yang kamu cari ?" style="border:none;" class="w-full placeholder-[#eee] pr-16 py-5 px-5 shadow-lg rounded-full focus:outline-none"/> | ||||
|                 <input type="text" name="key" placeholder="Data Apa yang kamu cari ?" style="border:none;" class="w-full placeholder-[#eee] pr-16 py-5 px-5 shadow-lg rounded-full focus:outline-none"/> | ||||
|                 <button  class="absolute top-15.5 right-0 text-white -translate-y-1/2 px-6 py-5 rounded-full" style="background: #E9811A;"> | ||||
|                     <i class="ri-search-line"></i> | ||||
|                 </button> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue