UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_bc4e8120f366
/
resources
/
views
/
cart
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
cart.blade.php
@extends($theme) @section('content') @include('flash::message') <div class="row"> <div class="col-md-12"> <div id="cart"> <ul> @if(count($cart->getCart())) <li> <div class="row"> <div class="col-md-6 name-cart"> @if($cart->get('image') != '') <img src="/storage{{ $cart->get('image') }}" class="pull-left img-rounded" width="60px" height="60px"> @else <img src="https://placehold.it/60x60/555466" class="pull-left img-rounded" width="60px" height="60px"> @endif <h4><a href="#">{{ $cart->get('name') }}</a></h4>{{ $cart->get('plan') }} </div> <div class="col-md-2 value-cart text-center">{{ MyHelper::formatValue($cart->get('price') + $cart->get('extra_amount')) }}</div> <div class="col-md-2 subvalue-cart text-center">{{ MyHelper::formatValue(($cart->get('price') + $cart->get('extra_amount')) - $cart->get('discount')) }}</div> <div class="col-md-2 action-cart text-right"> <a href="{{ route('cart.remove', $cart->get('course_id')) }}" class="btn btn-default"><i class="fa fa-trash-o"></i></a> </div> </div> </li> @else <li>{{ trans('site_cart.cartNull') }}</li> @endif @if(count($cart->getCart())) @if(CartHelper::courseHasShipping($cart)) <div class="well" id="divShipping"> <div class="form-horizontal"> <div class="form-group row"> {!! Form::label('zip', trans('site_cart.labelZip'), ['class' => 'col-md-1 control-label']) !!} <div class="col-md-2"> {!! Form::text('zip', $zipCode, ['class' => 'form-control']) !!} </div> <div class="col-md-3"> <button class="btn btn-primary" id="btnSeeShipping">{{ trans('site_cart.buttonShipping') }}</button> </div> <div class="col-md-7" id="divShippingInfo"> <table class="table table-responsive" id="tblShipping"> <thead> <tr> <th>{{ trans('site_cart.buttonShippingType') }}</th> <th id="clmnPrc">{{ trans('site_cart.buttonShippingValue') }}</th> <th id="clmnPrz">{{ trans('site_cart.buttonShippingDate') }}</th> </tr> </thead> <tbody id="tblShippingInfo"> </tbody> </table> </div> </div> </div> <span>{{ trans('site_cart.buttonShippingText') }}.</span> </div> @endif <li class="final-cart"> <div class="row"> <div class="col-md-5 cupom-cart"> <label style="margin-top: 18px;">{{ trans('site_cart.lblCoupon') }}:</label> <div class="input-group"> <input class="form-control" type="text" name="couponKey"> <span class="input-group-btn"> <button class="btn btn-danger" id="btnDiscount" style="padding: 12px 16px 11px 16px;">{{ trans('site_cart.couponValidate') }}</button> </span> </div> </div> <div class="col-md-4 col-md-offset-3 totalvalue-cart"> <h4 class="text-right"> <b> {{ trans('site_cart.buyTotal') }} : {{ MyHelper::formatValue($cart->getGrossAmount()) }} @if($cart->getDiscountAmount() > 0) <small>[-{{ MyHelper::formatValue($cart->getDiscountAmount()) }}] </small> = {{ MyHelper::formatValue($cart->getGrossAmount()-$cart->getDiscountAmount()) }} @endif </b> </h4> <h6 class="text-right" id="shippingValue"></h6> <a href="{{ route('cart.checkout') }}" class="btn btn-success btn-lg btn-block btnBuy"> {{ trans('site_cart.buyEnd') }} </a> </div> </div> </li> <a href="{{ route('cart.clear') }}" class="btn btn-default">{{ trans('site_cart.cartDelete') }}</a> @endif </ul> </div> </div> </div> @stop @section('scripts') <script type="text/javascript"> $(document).ready(function () { var shipping = $('#divShipping'); if (shipping.length) { $('a.btnBuy').addClass('disabled'); } $(document).on('click', '#btnDiscount', function () { var couponKey = $('input[name=couponKey]').val(); $.ajax({ type: "POST", url: "{{ route('cart.coupon') }}", data: { couponKey: couponKey }, success: function (data) { //console.log(data); if (data['status'] == false) { bootbox.alert(data['message']); } else { location.reload(); } }, error: function (request, status, error) { alert(request.responseText); } }); }); $(document).on('click', '#btnSeeShipping', function () { var zip = $('input[name=zip]').val(); $.ajax({ type: "POST", url: "{{ route('cart.see.shipping') }}", data: { zip: zip }, success: function (data) { $('#tblShippingInfo').html(data); $('#clmnPrc').css('text-align', 'right') $('#clmnPrz').css('text-align', 'right') $('a.btnBuy').addClass('disabled'); }, error: function (request, status, error) { //alert(request.responseText); alert('Verifique novamente as informações do CEP inserido e tente novamente.'); } }); }); $(document).on('change', "input[name='optradio']", function () { var shippingCode = this.value; var shippingPrice = $(this).parent().parent().next('td').text(); if (shippingPrice == 'N/A') { shippingPrice = '0'; } shippingPrice = shippingPrice.replace(',', '.'); $.ajax({ type: "POST", url: "{{ route('cart.add.shipping') }}", data: { shippingCode: shippingCode, shippingPrice: shippingPrice }, success: function (data) { $('#shippingValue').html(data); }, error: function (request, status, error) { alert(request.responseText); } }); $('a.btnBuy').removeClass('disabled'); }); }) </script> @stop
Copyright © 2026 - UnknownSec