partial update add page laporan pimpinan and fix upload big data excel pdam

This commit is contained in:
arifal
2025-02-27 19:23:06 +07:00
parent 01fda22c89
commit b0bab784d1
13 changed files with 394 additions and 73 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Resources\BigdataResumeResource;
use App\Models\BigdataResume;
use App\Models\DataSetting;
use Illuminate\Http\Request;
@@ -149,6 +150,22 @@ class BigDataResumeController extends Controller
}
}
public function bigdata_report(Request $request){
try{
$query = BigdataResume::query()->orderBy('id', 'desc');
if($request->filled('search')){
$query->where('name', 'LIKE', '%'.$request->input('search').'%');
}
$query = $query->paginate(15);
return BigdataResumeResource::collection($query)->response()->getData(true);
}catch(\Exception $e){
Log::error($e->getMessage());
return response()->json(['message' => 'Error when fetching data'], 500);
}
}
/**
* Store a newly created resource in storage.
*/