@extends('backend.dashboard.layout.master') @section('content')
@if ($errors->any())
@endif

@if (isset($method) && $method == 'PUT') {{translate('Edit Order')}} @else {{translate('Create Order ')}} @endif

{{ csrf_field() }} @if (isset($method)) @method('PUT') @endif

{{translate('Order')}}

#{{ $nextOrderId }}

{{translate('Main Price')}} ${{ old('price', $Order->price) }}
{{translate('Vat')}} ({{ old('taxes_id', 0) }}%) $0.00
{{translate('Discount')}} ${{ old('discount', $Order->discount) }}

{{translate('Final Price')}} ${{ old('total', $Order->total) }}

{{translate('Select Products')}}

{{ translate('Select one or more products from the list below by ticking the checkbox') }}.
{{ translate('Total Cost') }}: $ 0.00
@foreach($products as $product) @php $hasAnnual = $product->annual && count(json_decode($product->annual, true)) > 0; @endphp @endforeach
Product Qty Remaining
{{ $product->getTranslation('name') }}
Price: ${{ number_format($product->price, 2) }}
@if($hasAnnual) @endif @if($product->attribute && count(json_decode($product->attribute, true)) > 0) @endif
{{ $product->qty }}

Delivery Details

Billing Address
@endsection