I have this code in my view
@if($order->accept == 1)
<script>
window.setTimeout(function () {
window.location.href = "http://localhost:8000/confirmed/";
}, 12000);
</script>
@endif
and Controller
public function confirmed($order_id)
{
$order = Order::find($order_id);
if ($order->accept == 4) {
$message = '';
return view('trip.html.trip', compact('order', 'message'));
} else {
return view('trip.html.trip', compact('order'));
}
}
I want to check accept of my order without refresh page In this way I can but with refresh and I don't want it . Can anybody help me?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire