update penjagaan edit log
This commit is contained in:
@@ -64,11 +64,11 @@ class RequestLogController extends Controller
|
|||||||
})
|
})
|
||||||
->when($request->orderBy, function ($q, $orderBy) use ($request) {
|
->when($request->orderBy, function ($q, $orderBy) use ($request) {
|
||||||
if (in_array($orderBy, ['submission_date', 'code'])) {
|
if (in_array($orderBy, ['submission_date', 'code'])) {
|
||||||
$q->orderBy($orderBy, $request->order);
|
$q->orderBy($orderBy, $request->orderBy);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
->when(empty($request->orderBy), function ($q) {
|
->when(empty($request->orderBy), function ($q) {
|
||||||
$q->orderBy('created_at', 'desc');
|
$q->orderBy('submission_date', 'desc');
|
||||||
})
|
})
|
||||||
->when($request->service_code, function($q, $service_code) {
|
->when($request->service_code, function($q, $service_code) {
|
||||||
if ($service_code == 'IP'){ // Penjagaan sementara agar ini hanya muncul di inpatient monitoring
|
if ($service_code == 'IP'){ // Penjagaan sementara agar ini hanya muncul di inpatient monitoring
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ export default function Detail() {
|
|||||||
Detail
|
Detail
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
{requestLog?.status_final_log != 'requested' ? (
|
||||||
<Grid item xs={6} sx={{ display: 'flex', placeContent: 'end' }}>
|
<Grid item xs={6} sx={{ display: 'flex', placeContent: 'end' }}>
|
||||||
<MoreMenu
|
<MoreMenu
|
||||||
actions={
|
actions={
|
||||||
@@ -162,7 +163,7 @@ export default function Detail() {
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>) : null }
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Stack direction='row' spacing={2} sx={marginBottom1}>
|
<Stack direction='row' spacing={2} sx={marginBottom1}>
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ export default function Detail() {
|
|||||||
Detail
|
Detail
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
{requestLog?.status != 'requested' ? (
|
||||||
<Grid item xs={6} sx={{ display: 'flex', placeContent: 'end' }}>
|
<Grid item xs={6} sx={{ display: 'flex', placeContent: 'end' }}>
|
||||||
<MoreMenu
|
<MoreMenu
|
||||||
actions={
|
actions={
|
||||||
@@ -104,6 +105,7 @@ export default function Detail() {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
) : null}
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Stack direction='row' spacing={2} sx={marginBottom1}>
|
<Stack direction='row' spacing={2} sx={marginBottom1}>
|
||||||
|
|||||||
Reference in New Issue
Block a user