@extends('layouts.website') @section('content')
{{__('texte.website_arr.cart_checkout.title')}}
{{csrf_field()}}
@foreach($data['products'] as $index=>$product) @endforeach @if(isset($data['bonus_products']) && count($data['bonus_products'])>0) @foreach($data['bonus_products'] as $index=>$bonus_product) @endforeach @endif @if(isset($data['promotions']) && count($data['promotions'])>0) @foreach($data['promotions'] as $index=>$promotion) @endforeach @endif
{{__('texte.website_arr.cart_checkout.product')}} {{__('texte.website_arr.cart_checkout.measure')}} {{__('texte.website_arr.cart_checkout.quantity')}} {{__('texte.website_arr.cart_checkout.price')}}
{{$data['product_details'][$index][0]->name}} {{$data['package_details'][$index][0]->name}} {{$data['quantity'][$index]}} x {{$data['single_price'][$index]}} {{__('texte.website_arr.cart_checkout.bgn')}} {{number_format($data['quantity'][$index]*$data['single_price'][$index],2)}} {{__('texte.website_arr.cart_checkout.bgn')}}
 
{{__('texte.website_arr.cart_checkout.total_amount')}} {{number_format($data['total_amount'],2)}} {{__('texte.website_arr.cart_checkout.bgn')}}
{{__('texte.website_arr.cart_checkout.discounts')}} {{number_format($data['total_discounts'],2)}} {{__('texte.website_arr.cart_checkout.bgn')}}
Сума за транспорт: {{$user_cart_totals->total_value<($object->subtype->free_delivery_amount ?? 0) ? ($object->transport_amount==1 ? number_format($object->subregion->transport_amount*1.2,2) : 0) : number_format(0,2)}} {{__('texte.website_arr.show_cart.bgn')}}
{{__('texte.website_arr.cart_checkout.final_amount')}} {{number_format($data['total_amount']-$data['total_discounts'] + ($user_cart_totals->total_value<($object->subtype->free_delivery_amount ?? 0) ? ($object->transport_amount==1 ? number_format($object->subregion->transport_amount*1.2,2) : 0) : number_format(0,2)),2)}} {{__('texte.website_arr.cart_checkout.bgn')}}
{{__('texte.website_arr.cart_checkout.free_products')}}
{{$data['bonus_details'][$index][0]->name}} {{__('texte.website_arr.cart_checkout.count')}} {{$data['bonus_quantity'][$index]}}
 
{{__('texte.website_arr.cart_checkout.promotions')}}
{{$data['promotion_details'][$index][0]->description}}
 
@endsection