@extends('layouts.app') @section('content') {{ csrf_field() }}
@csrf
{{__("Discard")}} @if($order_form->confirmed == 0){{__("Confirm")}} @else {{__("Revoke")}} @endif {{__("Print")}} @if($order_form->confirmed == 1) {{__("Confirmed")}} @if($order_form->confirmed_date) {{date('d.m.Y H:i:s', strtotime($order_form->confirmed_date))}} @endif @endif

{{__("Number")}}:

{{__("Customer")}}: *

@if($errors->has('customer_id')) @endif

{{__("Date")}}: *

@if($errors->has('order_date')) @endif

{{__("Deadline")}}: *

@if($errors->has('deadline')) @endif

{{__("Area")}}: *

@if($errors->has('area_id')) @endif

{{__("Payment terms")}}: *

{{__("Item type")}}:

{{__("Item")}}:

@csrf
@if(!empty($preparedItems))

{{__("Prepared items")}}

@foreach($preparedItems as $item) @endforeach
{{__('Code')}} {{__('Item')}} {{__('Quantity')}} {{__('Discount')}} {{__('Price')}} {{__('Total')}} {{__('Description')}}
{{$item->code}} {{$item->item_name}} {{number_format($item->quantity, 2, ',', '.')}} {{$item->discount}}% {{number_format($item->price, 2, ',', '.')}} {{number_format($item->price*$item->quantity*(1-$item->discount/100), 2, ',', '.')}} {{$item->description}}
@endif @if(!$itemList->isEmpty())

{{__("Items")}}

@foreach($itemList as $item) @endforeach
{{__('Code')}} {{__('Item')}} {{__('Quantity')}} {{__('Discount')}} {{__('Price')}} {{__('Total')}} {{__('Description')}}
@if($item->code_prefix){{$item->code_prefix.'-'}}@endif{{str_pad($item->code, 3, '0', STR_PAD_LEFT)}} {{$item->name}} {{number_format($item->quantity, 2, ',', '.')}} {{$item->discount}}% {{number_format($item->price, 2, ',', '.')}} {{number_format($item->price*$item->quantity*(1-$item->discount/100), 2, ',', '.')}} {{$item->description}} id}}>
@endif
@endsection