@php $promotionImage = !empty($promotion->image ?? '') ? ImageOS::photo($promotion->image, 0, 0) : ''; if(Agent::isMobile() && !empty($promotion->image_xs ?? '')) { $promotionImage = ImageOS::photo($promotion->image_xs, 0, 0); } $locale = app()->getLocale() == 'en' ? '_en' : ''; @endphp @extends('shared.front') @section('content')

{{$promotion->name ?? ''}} @if(!empty($promotion->summary ?? '')) {!!$promotion->summary!!} @endif

@if(!empty($promotionImage)) {{ $promotion->name }} @endif
@csrf
@include('home.errors.alert')

{{ __('messages.checkout.delivery_information') }}

@include('home.elements.payment-note')
@php $totalAmount = 0; $totalDiscount = 0; $idx = 0; @endphp @if(isset($promotion->rules) && is_array($promotion->rules) && count($promotion->rules) > 0) @endif
  • {{ __('messages.cart.sub_total') }} {{Common::numberFormat($totalAmount)}} VNĐ
  • @if($totalDiscount > 0)
  • {{ __('messages.cart.discount') }} {{Common::numberFormat($totalDiscount)}} VNĐ
  • @endif
  • {{ __('messages.cart.shipping_fee') }} --
@php $totalAmount = $totalAmount > $totalDiscount ? ($totalAmount-$totalDiscount) : 0; @endphp {{ __('messages.cart.total_bill') }} {{Common::numberFormat($totalAmount)}} VNĐ {{ __('messages.cart.include_vat') }}
@include('home.elements.shipment-note')
@if(($checkoutOff ?? 0) == 0) @endif
@endsection @section('js') @parent @endsection @section('js-ext') @parent @endsection