is it ok to write php code in laravel's blade? this is my code
$orders = order::where('user_id', '=', Auth::user()->id)->get(); $counts= $orders->count(); $totalPrice = 0; for ($i = 1; $i <= $counts ; $i++) { $totalPrice += $order->cart->totalPrice; } echo $totalPrice; ?>
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2DW9QMw
via IFTTT
Aucun commentaire:
Enregistrer un commentaire