⚝
One Hat Cyber Team
⚝
Your IP:
3.147.71.176
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
favoaysf
/
www
/
resources
/
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>