@lang('theme.button.apply_coupon')
{{ Form::hidden('cart_id', $cart->id, ['id' => 'checkout-id']) }}
{{ Form::hidden('cart_weight', $cart->shipping_weight, ['id' => 'cartWeight' . $cart->id]) }}
{{ Form::hidden('free_shipping', $cart->is_free_shipping(), ['id' => 'freeShipping' . $cart->id]) }}
{{ Form::hidden('shop_id', $cart->shop->id, ['id' => 'shop-id' . $cart->id]) }}
{{ Form::hidden('tax_id', isset($shipping_zones[$cart->id]->i) ? $shipping_zones[$cart->id]->tax_id : null, ['id' => 'tax-id' . $cart->id]) }}
{{ Form::hidden('taxrate', $cart->taxrate, ['id' => 'cart-taxrate' . $cart->id]) }}
{{ Form::hidden('packaging_id', $cart->packaging_id ?? optional($default_packaging)->id, ['id' => 'packaging-id' . $cart->id]) }}
{{ Form::hidden('shipping_zone_id', $cart->shipping_zone_id, ['id' => 'zone-id' . $cart->id]) }}
{{ Form::hidden('shipping_rate_id', $cart->shipping_rate_id, ['id' => 'shipping-rate-id' . $cart->id]) }}
{{ Form::hidden('ship_to_country_id', $cart->ship_to_country_id, ['id' => 'shipto-country-id' . $cart->id]) }}
{{ Form::hidden('ship_to_state_id', $cart->ship_to_state_id, ['id' => 'shipto-state-id' . $cart->id]) }}
{{ Form::hidden('coupon_raw', json_encode($cart->coupon), ['id' => 'coupon-raw' . $cart->id]) }}
{{-- {{ Form::hidden('discount_id', $cart->coupon_id, ['id' => 'discount-id' . $cart->id]) }} --}}
{{ Form::hidden('handling_cost',$cart->handling_cost > 0 ? $cart->handling_cost : optional($cart->shop->config)->order_handling_cost,['id' => 'handling-cost' . $cart->id]) }}
{{ trans('theme.order_info') }}
{{ trans('theme.item_count') }}
{{-- وصف مختصر --}}
{{ $cart->inventories_count + $cart->auctions()->count() }}
{{ trans('theme.quantity') }}
@php
$auctions_quantity = 0;
foreach($cart->auctions as $auction){
$auctions_quantity+= $auction->quantity ;
}
@endphp
{{ $cart->quantity + $auctions_quantity }}
{{-- @if($cart->auctions != null)--}}
{{-- {{ $cart->auctions()->quantity .' '. __('theme.auction') }} --}}
{{-- @endif--}}
{{ trans('theme.subtotal') }}
{{-- وصف مختصر --}}
@php
$auction_total = 0;
foreach ($cart->auctions as $auction)
{
$auction_total += $auction->bids()->where('status',1)->first()->price;
}
$total = $auction_total + $cart->total
@endphp
{{ get_currency_prefix() }}
{{ number_format($cart->total + $auction_total, 2, '.', '') }}
{{ get_currency_suffix() }}
{{ get_currency_prefix() }}
{{ number_format($cart->get_shipping_cost(), 2, '.', '') }}
{{ get_currency_suffix() }}
@unless(empty(json_decode($packaging_options)))
{{ get_currency_prefix() }}
{{ number_format($default_packaging ? $default_packaging->cost : 0, 2, '.', '') }}
{{ get_currency_suffix() }}
@endunless
{{ trans('theme.discount') }}
{{ $cart->coupon ? $cart->coupon->name . ' (' . $cart->coupon->getFormatedAmountText() . ')' : '' }}
-{{ get_currency_prefix() }}
{{ $cart->coupon ? number_format($cart->discount, 2, '.', '') : number_format(0, 2, '.', '') }}
{{ get_currency_suffix() }}
{{ trans('theme.taxes') }}
{{ get_currency_prefix() }}
{{ number_format($cart->taxes, 2, '.', '') }}
{{ get_currency_suffix() }}
{{ trans('theme.total') }}
{{ get_currency_prefix() }}
{{ number_format($cart->calculate_grand_total(), 2, '.', '') }}
{{ get_currency_suffix() }}
@include('partials.payment_options')