⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
ecommerce.dev-unit.com
/
views
/
includes
/
View File Name :
header_cart.blade.php
@php $grandSubtotal = 0; $qty = 0; $option_price = 0; @endphp @if (Session::has('cart')) @foreach (Session::get('cart') as $key => $cart) @php $grandSubtotal = ($cart['main_price'] + $grandSubtotal + $cart['attribute_price']) * $cart['qty']; @endphp <div class="entry"> <div class="entry-thumb"><a href="{{route('front.product',$cart['slug'])}}"><img src="{{asset('assets/images/'.$cart['photo'])}}" alt="Product"></a></div> <div class="entry-content"> <h4 class="entry-title"><a href="{{route('front.product',$cart['slug'])}}"> {{ Str::limit($cart['name'], 45) }} </a></h4> <span class="entry-meta">{{$cart['qty']}} x {{PriceHelper::setCurrencyPrice($cart['main_price'])}}</span> @foreach ($cart['attribute']['option_name'] as $optionkey => $option_name) <span class="att"><em>{{$cart['attribute']['names'][$optionkey]}}:</em> {{$option_name}} ({{PriceHelper::setCurrencyPrice($cart['attribute']['option_price'][$optionkey])}})</span> @endforeach </div> <div class="entry-delete"><a href="{{route('front.cart.destroy',$key)}}"><i class="icon-x"></i></a></div> </div> @endforeach <div class="text-right"> <p class="text-gray-dark py-2 mb-0"><span class="text-muted">{{__('Subtotal')}}:</span> {{PriceHelper::setCurrencyPrice($grandSubtotal)}}</p> </div> <div class="d-flex justify-content-between"> <div class="w-50 d-block"><a class="btn btn-primary btn-sm mb-0" href="{{route('front.cart')}}"><span>{{__('Cart')}}</span></a></div> <div class="w-50 d-block text-end"><a class="btn btn-primary btn-sm mb-0" href="{{route('front.checkout.billing')}}"><span>{{__('Checkout')}}</span></a></div> @else {{__('Cart empty')}} @endif </div>