One Hat Cyber Team
Your IP :
18.188.249.86
Server IP :
104.21.48.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
gftag.com
/
resources
/
views
/
includes
/
Edit File:
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'])}}"> {{ strlen(strip_tags($cart['name'])) > 15 ? substr(strip_tags($cart['name']), 0, 15) . '...' : strip_tags($cart['name']) }} </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>
Simpan