@extends("frontend.layout.master") @section('title','Emart | Cart') @section("content")
@php $pro = Session('pro_qty'); $value = Session::get('cart'); if (Auth::check()) { $count = $cart_table->count(); } else { if (isset($value)) { $count = count($value); } else { $count = 0; } } if(Auth::check()){ $usercart = $count; }else{ $usercart = session()->get('cart'); } @endphp
@if($usercart > 0 && $usercart != null) @if(Session::has('validcurrency'))
{{ __('Oscur') }} {{ Session::get('currency')['id'] }}{{ __('CerrorMsg') }} !
@endif @if(Auth::check()) @foreach($cart_table as $row) @php $orivar = $row->variant; @endphp @isset($orivar)
@endisset @if($row->simple_product)
@endif @endforeach @else @if(!empty(session()->get('cart'))) @foreach($cts = Session::get('cart') as $ckey=> $row)
{{ csrf_field() }} @php $pro = App\Product::withTrashed()->where('id',$row['pro_id'])->first(); $orivar = App\AddSubVariant::withTrashed()->where('id','=',$row['variantid'])->first(); @endphp