@extends('base', [ 'scripts' => [ 'flexibleInputWidth', 'multiLineEllipsis' ] ]) @section('title', __('Shopping Bag')) @section('content') @include('common.no_cache') @php use App\Cart; use App\Enumerables\Currency; /** * @var array $items */ $version = config('app.version'); $currency = Currency::GBP; $currencySign = '£ '; if (isset($_COOKIE['currency']) && $_COOKIE['currency'] != Currency::GBP) { $currency = Currency::CNY; $currencySign = '¥ '; } $currentMonth = date('m'); $currentYear = date('Y'); $maxYear = $currentYear + 2; $language = config('app.locale'); $itemsCount = count($items); $prices = Cart::getCartPrices($items); $isCheckout = $isCheckout ?? false; @endphp

{{__('my-bag')}}

@include('order.components.items_count')
@if(!$isCheckout) @endif
@if(!$isCheckout) @include('order.components.bag_total_price', [ 'total' => $prices['orderToPay'], 'currency' => $currency ]) @endif
{{__('Start Date')}}
@if($itemsCount > 0)
@include('order.components.cart_items', [ 'checked' => true ])
@endif
@if($isCheckout) @include('order.components.checkout_summary') @else @include('order.components.bag_summary', [ 'total' => $prices['orderToPay'], 'currency' => $currency ]) @include('modals.cart_full_modal', ['reload' => true]) @endif @if($isCheckout) @include('order.scripts.cart_checkout') @else @include('order.scripts.cart_bag') @endif @endsection