@extends('user.layouts.index') @section('page_content')

Cart Page

@if ($message = Session::get('success'))
{{ $message }}
@endif

Home / Pages / Cart Page

{{-- {{ dd($getcart) }} --}} @foreach ($getcart as $g ) @endforeach
Item Details Quantity Total Points
{{ucwords($g->product->name)}}
@if($g->promotion) Unit Price :{{$g->promotion->value}} @else Unit Price :{{$g->product->price}} @endif

Notice: Undefined variable: g in /home/demohatinco/public_html/my_shout_backend/resources/views/user/cartpage/index.blade.php on line 84

Notice: Trying to get property 'promotion' of non-object in /home/demohatinco/public_html/my_shout_backend/resources/views/user/cartpage/index.blade.php on line 84

Notice: Undefined variable: g in /home/demohatinco/public_html/my_shout_backend/resources/views/user/cartpage/index.blade.php on line 88

Notice: Trying to get property 'quantity' of non-object in /home/demohatinco/public_html/my_shout_backend/resources/views/user/cartpage/index.blade.php on line 88

Notice: Undefined variable: g in /home/demohatinco/public_html/my_shout_backend/resources/views/user/cartpage/index.blade.php on line 88

Notice: Trying to get property 'product' of non-object in /home/demohatinco/public_html/my_shout_backend/resources/views/user/cartpage/index.blade.php on line 88

Notice: Trying to get property 'price' of non-object in /home/demohatinco/public_html/my_shout_backend/resources/views/user/cartpage/index.blade.php on line 88
{{-- --}} {{$g->quantity}} @if($g->promotion) {!!$g->quantity*$g->promotion->value !!} @else {{-- $ {{$p->price * $point_price }} --}} {!!$g->quantity*$g->product->price !!} @endif {{-- {{$total_price}} --}}
{{-- --}} {{-- --}}
Apply Coupon @include('user.cartpage.promo_code_modal', [ 'final_price'=>$final_price, 'url'=>asset('user/request/save'), ])
{{--
--}}

Cart Total

Subtotal {{$final_price}}
Total {{$final_price}}
{{-- {{--====== ///////PROCEED TO CHECK OUT BUTTON BEFORE COUPON WORKING --}===========} --}}
{!! Form::open(['id'=>'my_form','method' => 'POST', 'url' => ['user/request/save' ], 'files'=>true]) !!} {{-- promotion->id}}> --}} {!! Form::close() !!}
Points {{-- --}}
@endsection @section('app_jquery') @endsection