@php $settings=DB::table('settings')->get(); @endphp
  • @foreach($settings as $data) {{$data->phone}} @endforeach
  • @foreach($settings as $data) {{$data->email}} @endforeach
@php $total_prod=0; $total_amount=0; @endphp @if(session('wishlist')) @foreach(session('wishlist') as $wishlist_items) @php $total_prod+=$wishlist_items['quantity']; $total_amount+=$wishlist_items['amount']; @endphp @endforeach @endif {{Helper::wishlistCount()}} @auth
    {{-- {{Helper::getAllProductFromCart()}} --}} @foreach(Helper::getAllProductFromWishlist() as $data) @php $photo=explode(',',$data->product['photo']); @endphp
  • {{$photo[0]}}

    {{$data->product['title']}}

    {{$data->quantity}} x - ${{number_format($data->price,2)}}

  • @endforeach
Total ${{number_format(Helper::totalWishlistPrice(),2)}}
Cart
@endauth
{{--
--}}
{{Helper::cartCount()}} @auth
    {{-- {{Helper::getAllProductFromCart()}} --}} @foreach(Helper::getAllProductFromCart() as $data) @php $photo=explode(',',$data->product['photo']); @endphp
  • {{$photo[0]}}

    {{$data->product['title']}}

    {{$data->quantity}} x - ${{number_format($data->price,2)}}

  • @endforeach
Total ${{number_format(Helper::totalCartPrice(),2)}}
Checkout
@endauth