![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/resources/themes/marketplace-master/templates/ |
@extends('layouts.public') @section('editable_content') @include('partials.page_header',['content' => '<h1><i class="fa fa-shopping-cart fa-fw"></i> Cart</h1>']) @php \Actions::do_action('pre_content', null, null) @endphp <!-- Page Content--> <div class="container padding-bottom-3x mb-1 mt-30"> @if (count(ShoppingCart::getAllInstanceItems()) > 0) <div class="table-responsive shopping-cart"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <thead> <tr> <th>@lang('corals-marketplace-master::labels.template.cart.product')</th> <th class="text-center" width="200">@lang('corals-marketplace-master::labels.template.cart.quantity')</th> <th class="text-center">@lang('corals-marketplace-master::labels.template.cart.price')</th> <th class="text-center"> <a class="btn btn-sm btn-outline-danger" href="{{ url('cart/empty') }}" title="Delete" data-action="post" data-page_action="site_reload"> @lang('corals-marketplace-master::labels.template.cart.clear_cart') </a> </th> </tr> </thead> <tbody> @foreach (\ShoppingCart::getAllInstanceItems() as $item) <tr id="item-{{$item->getHash()}}"> <td> <div class="product-item"> <a class="product-thumb" href="{{ url('shop', [$item->id->product->slug]) }}"> <img src="{{ $item->id->image }}" alt="SKU Image" class="mx-auto" style="max-height: 100px;width: auto;"> </a> <div class="product-info"> <h4 class="product-title"> <a href="{{ url('shop', [$item->id->product->slug]) }}"> {!! $item->id->product->name !!} [{{$item->id->code }}] </a> </h4> {!! $item->id->presenter()['options'] !!} {!! formatArrayAsLabels(\OrderManager::mapSelectedAttributes($item->product_options), 'success',null,true) !!} </div> </div> </td> <td class="text-center"> <div class=""> @if(!$item->id->isAvailable($item->qty)) @lang('Marketplace::labels.shop.out_stock') @else @if($item->id->allowed_quantity != 1) <form action="{{ url('cart/quantity', [$item->getHash()]) }}" method="POST" class="ajax-form form-inline" data-page_action="updateCart"> {{ csrf_field() }} <a href="{{ url('cart/quantity', [$item->getHash()]) }}" class="btn btn-sm btn-warning item-button" title="Remove One" data-action="post" data-style="zoom-in" data-request_data='@json(["action"=>"decreaseQuantity"])' data-page_action="updateCart"> <i class="fa fa-fw fa-minus"></i> </a> <input step="1" min="1" class="form-control form-control-sm cart-quantity" style="width:60px;display: inline;text-align:center" type="number" name="quantity" data-id="{{ $item->rowId }}" {!! $item->id->allowed_quantity>0?('max="'.$item->id->allowed_quantity.'"'):'' !!} value="{{ $item->qty }}"/> <a href="{{ url('cart/quantity', [$item->getHash()]) }}" class="btn btn-sm btn-success item-button" data-style="zoom-in" title="Add One" data-action="post" data-page_action="updateCart" data-request_data='@json(["action"=>"increaseQuantity"])'> <i class="fa fa-fw fa-plus"></i> </a> </form> @else <input style="width:40px;text-align: center;" value="1" disabled/> @endif @endif </div> </td> <td class="text-center text-lg text-medium" id="item-total-{{$item->getHash()}}"> {{ $item->subtotal() }} </td> <td class="text-center"> <a class="remove-from-cart item-button" href="{{ url('cart/quantity', [$item->getHash()]) }}" data-action="post" data-style="zoom-in" data-request_data='@json(["action"=>"removeItem"])' data-page_action="updateCart" data-toggle="tooltip" title="Remove item"> <i class="icon-cross"></i> </a> </td> </tr> @endforeach </tbody> </table> </div> <div class="shopping-cart-footer"> <div class="column"> <div class="column"><a class="btn btn-outline-secondary" href="{{ url('shop') }}"><i class="icon-arrow-left"></i> @lang('corals-marketplace-master::labels.template.cart.back_shopping') </a></div> </div> <div class="column text-lg">@lang('corals-marketplace-master::labels.template.cart.subtotal') <span class="text-medium" id="total"> {{ ShoppingCart::subTotalAllInstances() }} </span> @if(Settings::get('marketplace_tax_tax_included_in_price')) <small style="font-size: 9px">@lang('Marketplace::attributes.product.tax_included') </small> @endif <a class="btn btn-success" href="{{ url('checkout') }}">@lang('corals-marketplace-master::labels.template.cart.checkout')</a> </div> </div> {{--<div class="shopping-cart-footer">--}} {{--</div>--}} @else <div class="text-center"> <h3>@lang('corals-marketplace-master::labels.template.cart.have_no_item')</h3> <a href="{{ url('shop') }}" class="btn btn-primary btn"> <i class="fa fa-shopping-cart fa-fw"></i>@lang('corals-marketplace-master::labels.template.cart.continue_shopping') </a> </div> @endif @include('partials.featured_products',['title'=>trans('corals-marketplace-master::labels.template.cart.title')]) </div> @stop