@php $cart = Session::has('cart') ? Session::get('cart') : []; $cart_redeem = Session::has('cart_redeem') ? Session::get('cart_redeem') : []; $total = 0; $option_price = 0; $cartTotal = 0; $user = Auth::user(); if ($user) { $point = App\Models\HistoryPointModel::where('user_id', $user->id) ->where('expired_at', '>', Carbon\Carbon::now()) ->where('type', 'get') ->sum('point'); $point_used = App\Models\HistoryPointModel::where('user_id', $user->id) ->where('expired_at', '>', Carbon\Carbon::now()) ->where('type', 'use') ->sum('point'); $point = $point - $point_used; $point_back = App\Models\Point::where('id', 1)->first(); } else { $point = 0; $point_back = App\Models\Point::where('id', 1)->first(); } $redeem_point = 0; if ($cart_redeem) { foreach ($cart_redeem as $key => $item) { $redeem_point += $item['point']; } } @endphp
{{ Str::limit($item['name'], 45) }}
{{ __('รหัสสินค้า') }}:{{ $item['slug'] }}
{{ PriceHelper::setCurrencyPrice($item['main_price']) }}
@foreach ($item['attribute']['option_name'] as $optionkey => $option_name) {{ $item['attribute']['names'][$optionkey] }}: {{ $option_name }} ({{ PriceHelper::setCurrencyPrice($item['attribute']['option_price'][$optionkey]) }}) @endforeach @if ($checkprofree['status']){{ PriceHelper::setCurrencyPrice($item['main_price'] * $item['qty']) }}
{{ __('รหัสสินค้า') }}:
{{ Str::limit($item['name'], 45) }}
{{ PriceHelper::setCurrencyPrice($item['main_price']) }}
@foreach ($item['attribute']['option_name'] as $optionkey => $option_name) {{ $item['attribute']['names'][$optionkey] }}: {{ $option_name }} ({{ PriceHelper::setCurrencyPrice($item['attribute']['option_price'][$optionkey]) }}) @endforeach{{ __('กิจกรรมคะแนนแลกสินค้า') }}
0.00
{{ __('Product Name') }} | {{ __('Product Price') }} | {{ __('Quantity') }} | {{ __('Subtotal') }} | {{ __('Clear Cart') }} |
---|---|---|---|---|
{{ Str::limit($item['name'], 45) }}@foreach ($item['attribute']['option_name'] as $optionkey => $option_name) {{ $item['attribute']['names'][$optionkey] }}: {{ $option_name }} ({{ PriceHelper::setCurrencyPrice($item['attribute']['option_price'][$optionkey]) }}) @endforeach |
{{ PriceHelper::setCurrencyPrice($item['main_price']) }} |
@if ($item['item_type'] == 'normal')
|
{{ PriceHelper::setCurrencyPrice($item['main_price'] * $item['qty']) }} |