@extends('admin.layouts.master') @section('buttons') @can('create', \App\Models\Order::class) {{ trans('app.search_again') }} @endcan @can('index', \App\Models\Order::class) {{ trans('app.cancel') }} @endcan @endsection @section('content') @php $shipping_address = $customer->shippingAddress ? $customer->shippingAddress : $customer->primaryAddress; $billing_address = $customer->billingAddress ? $customer->billingAddress : $shipping_address; $shipping_zone = $shipping_address ? get_shipping_zone_of(Auth::user()->merchantId(), $shipping_address->country_id, $shipping_address->state_id) : null; $shipping_options = isset($shipping_zone->id) ? getShippingRates($shipping_zone->id) : 'NaN'; if (is_incevio_package_loaded('packaging')) { $packaging_options = getPackagings(); $default_packaging = isset($cart->packaging_id) ? $cart->shippingPackage : getDefaultPackaging(); } @endphp
{{ trans('app.total') }} | {{ get_formated_currency_symbol() }} {{ get_formated_decimal(0, true, 2) }} |
{{ trans('app.discount') }} | − {{ get_formated_currency_symbol() }} {{ isset($cart->discount) ? get_formated_decimal($cart->discount, true, 2) : get_formated_decimal(0, true, 2) }} |
{{ trans('app.shipping') }} |
{{ get_formated_currency_symbol() }} {{ get_formated_decimal(0, true, 2) }} |
{{ trans('app.packaging') }} {{ $default_packaging ? $default_packaging->name : '' }} |
{{ get_formated_currency_symbol() }} {{ get_formated_decimal($default_packaging ? $default_packaging->cost : 0, true, 2) }} |
{{ trans('app.handling') }} | {{ get_formated_currency_symbol() }} {{ get_formated_decimal(config('shop_settings.order_handling_cost'), true, 2) }} |
{{ trans('app.taxes') }} {{ isset($shipping_zone->name) ? $shipping_zone->name . ' ' : '' }} % |
{{ get_formated_currency_symbol() }} {{ get_formated_decimal(0, true, 2) }} |
{{ trans('app.grand_total') }} | {{ get_formated_currency_symbol() }} {{ get_formated_decimal(0, true, 2) }} |
* {{ trans('app.form.required_fields') }}
@if ($customer->image) @else @endif
@can('view', $customer) {{ trans('app.view_detail') }} @endcan