Merge branch 'staging' into feature/senior-officer
This commit is contained in:
@@ -151,7 +151,7 @@ class LaporanExternalController extends Controller
|
||||
$filteredRecords = $query->count();
|
||||
|
||||
// Get the data for the current page
|
||||
$data = $query->get();
|
||||
$data = $query->with(['permohonan.debiture','permohonan.penawaran.tujuanPenilaianKjpp'])->get();
|
||||
|
||||
// Calculate the page count
|
||||
$pageCount = ceil($totalRecords / $request->get('size'));
|
||||
|
||||
@@ -388,11 +388,15 @@ use Illuminate\Support\Facades\Auth;
|
||||
|
||||
public function updateSla(Request $request, $id): JsonResponse
|
||||
{
|
||||
|
||||
$request->validate([
|
||||
'sla' => 'required|integer|min:1',
|
||||
]);
|
||||
|
||||
$permohonan = Permohonan::where('nomor_registrasi','=',$id)->first();
|
||||
|
||||
$penawaran = PenawaranTender::find($id);
|
||||
$permohonan = Permohonan::where('nomor_registrasi','=',$penawaran->nomor_registrasi)->first();
|
||||
|
||||
$permohonan->sla = $request->sla;
|
||||
$permohonan->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user