![]() 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/Corals/modules/Marketplace/resources/views/cart/ |
@extends('layouts.crud.create_edit') @section('content_header') @component('components.content_header') @slot('page_title') {{ $title_singular }} @endslot @slot('breadcrumb') {{ Breadcrumbs::render('marketplace_cart') }} @endslot @endcomponent @endsection @section('content') @parent @component('components.box',['box_class'=>'box-success']) <div class="row"> <div class="col-sm-12 col-md-12"> @if (sizeof(ShoppingCart::getAllInstanceItems()) > 0) <div class="table-responsive"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <thead> <tr> <th class="table-image"></th> <th>@lang('Marketplace::labels.cart.product')</th> <th>@lang('Marketplace::labels.cart.quantity')</th> <th>@lang('Marketplace::labels.cart.price')</th> <th class="column-spacer"></th> <th></th> </tr> </thead> <tbody> @foreach (\ShoppingCart::getAllInstanceItems() as $item) <tr id="item-{{$item->getHash()}}"> <td class="table-image"> <a href="{{ url('shop', [$item->id->product->slug]) }}" target="_blank"> <img src="{{ $item->id->image }}" alt="SKU Image" class="img-rounded" width="50"></a> </td> <td> <a target="_blank" href="{{url('shop', [$item->id->product->slug])}}">{{ $item->id->product->name }} [ {{$item->id->code }}]</a><br> {!! $item->id->present('options') !!} {!! formatArrayAsLabels(\OrderManager::mapSelectedAttributes($item->product_options), 'success',null,true) !!} </td> <td> @if(!$item->id->isAvailable($item->qty)) @lang('Marketplace::labels.shop.out_stock') @else @if($item->id->allowed_quantity != 1) <a href="{{ url('cart/quantity', [$item->getHash()]) }}" class="btn btn-xs 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> <form action="{{ url('cart/quantity', [$item->getHash()]) }}" method="POST" class="ajax-form inline d-inline"> {{ csrf_field() }} <input step="1" min="1" class="cart-quantity" style="width:40px;text-align: center;" type="number" name="quantity" data-id="{{ $item->rowId }}" {!! $item->id->allowed_quantity>0?('max="'.$item->id->allowed_quantity.'"'):'' !!} value="{{ $item->qty }}"/> </form> <a href="{{ url('cart/quantity', [$item->getHash()]) }}" class="btn btn-xs 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> @else <input style="width:40px;text-align: center;" value="1" disabled/> @endif @endif </td> <td id="item-total-{{$item->getHash()}}">{{ $item->subtotal() }}</td> <td class=""></td> <td> <a href="{{ url('cart/quantity', [$item->getHash()]) }}" class="btn btn-xs btn-danger item-button" title="Delete" data-action="post" data-style="zoom-in" data-request_data='@json(["action"=>"removeItem"])' data-page_action="updateCart"> <i class="fa fa-fw fa-trash"></i> </a> </td> </tr> @endforeach <tr class="border-bottom"> <td class="table-image"></td> <td style="padding: 40px;"></td> <td class="small-caps table-bg" style="text-align: right">@lang('Marketplace::labels.cart.sub_total')</td> <td> <span 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 </td> <td class="column-spacer"></td> <td></td> </tr> </tbody> </table> </div> <div class="spacer"></div> <a href="{{ url('marketplace/shop') }}" class="btn btn-primary btn">@lang('Marketplace::labels.cart.continue_shop')</a> <a href="{{ url('marketplace/checkout') }}" class="btn btn-success btn">@lang('Marketplace::labels.cart.proceed_checkout')</a> <div style="float:right"> <a href="{{ url('cart/empty') }}" class="btn btn-danger item-button" title="Delete" data-action="post" data-page_action="site_reload"> <i class="fa fa-fw fa-trash"></i>@lang('Marketplace::labels.cart.empty_cart') </a> </div> @else <div class="text-center"> <h3>@lang('Marketplace::labels.cart.no_item_in_shopping')</h3> <a href="{{ url('marketplace/shop') }}" class="btn btn-primary btn"> <i class="fa fa-shopping-cart fa-fw"></i> @lang('Marketplace::labels.cart.continue_shop') </a> </div> @endif <div class="spacer"></div> </div> </div> @endcomponent @endsection @section('js') @parent @include('Marketplace::cart.cart_script') @endsection