@extends('layouts.main') @push('nav_title') {{-- User--}} Enzy @endpush @section('page_title')

Enzy Products

@endsection @section('profile') @include('layouts/profile') @endsection @section('side_bar')
@include('layouts/side_bar')
@endsection @section('main_div')
@foreach($products as $product)
{{$product->name}}
{{$product->quantity}}
{{$product->size}}
{{$product->price}}
{{$product->descryption}}
@if($product->quantity > 0) {{-- --}} @else @endif
@endforeach

Cart

@php $total = 0; @endphp @foreach($carts as $cart) @php $total += $cart['price'] * $cart['quantity']; @endphp @endforeach
Qty Name Price Action
{{$cart['quantity']}} {{$cart['name']}} {{$cart['price']}}

Total:

{{ $total }}
@endsection