@php //use App\Models\EcommerceSetting; //$cart_price=EcommerceSetting::first()->cart_price; $item = Cache::get('site_status'); $ecomm_setting = $item ? json_decode($item) : null; $cart_price = $ecomm_setting->cart_price ?? 0; $payment_options=DB::table('pos_setting')->first()->payment_options; @endphp
Cart - {{ getTotalCart()}} items
@php $total=0; @endphp @foreach($cart as $key=>$item) @php $sub_total=$item['price']*$item['quantity']; $total +=$sub_total; @endphp @endforeach @if(getTotalDiscount()>0) @endif @php $total=$total-getTotalDiscount(); @endphp
ছবি পন্যের নাম পরিমান পন্যের দাম
@csrf @method('DELETE')
{{$item['name']}}
@if($item['old_price']!='0') {{$item['old_price']}} @else {{$item['price']}} @endif @if($item['discount']) Discount: {{$item['discount']}} @endif
সাবটোটাল {{$total}} ৳
ডেলিভারি চার্জ

0.00 ৳

ডিসকাউন্ট

{{getTotalDiscount()}} ৳

টোটাল

{{$total}}

@foreach($cart as $item)
@endforeach