@extends('layouts.app') @section('link') @endsection @section('style') @endsection @section('content')
@include('shared.messages')

{{__('texte.orders_arr.show_combined.show_combined_order')}}

@if($order->status==1) {{__('texte.orders_arr.show_combined.approve_order')}} @endif @permission('order-route-edit') @if(auth()->user()->id==1) @endif @endpermission @if($object->data->overdue_amount>0)

Обекта има просрочени задължения в размер на {{number_format($object->data->overdue_amount,2)}} лв.

@endif
{{__('texte.orders_arr.show_combined.object')}}: {{ $order->name }}
{{__('texte.orders_arr.show_combined.storage')}}: {{ $order->storage_name }}
{{__('texte.orders_arr.show_combined.type')}}: {{Lang::get('texte.order_type_arr')[$order->type]}}
{{__('texte.orders_arr.show_combined.urgent')}}: {{Lang::get('texte.replies_arr')[$order->type]}}
{{__('texte.orders_arr.show_combined.delivery_date')}}: {{date("d.m.Y",strtotime($order->delivery_date))}}
{{__('texte.orders_arr.show_combined.payment')}}: {{Lang::get('texte.payment_types_arr')[$order->payment_type]}}
{{__('texte.orders_arr.show_combined.source')}}: {!!Lang::get('texte.source_type_arr')[$order->source]!!}
{{__('texte.orders_arr.show_combined.user')}}: {{$order->user->name}}
{{__('texte.orders_arr.show_combined.status')}}: {{ Lang::get('texte.status_type_arr')[$order->status] }}
{{__('texte.orders_arr.show_combined.note')}}: @foreach($orders as $current_order) @if($current_order->note!=null)

{!! $current_order->note.'
' !!}

@endif @endforeach {{ $order->obect->user->note}}

{{__('texte.orders_arr.show_combined.combined_orders')}}

@foreach($orders as $current_order)
{{__('texte.orders_arr.show_combined.order')}} {{__('texte.orders_arr.show_combined.delivery_date')}} {{__('texte.orders_arr.show_combined.urgent')}} {{__('texte.orders_arr.show_combined.source')}} {{__('texte.orders_arr.show_combined.user')}}
{{$current_order->id}} {{date_format(new DateTime($current_order->delivery_date), 'd.m.Y')}} {{Lang::get('texte.replies_arr')[$current_order->urgent]}} {!!Lang::get('texte.source_type_arr')[$current_order->source]!!} {{$current_order->user->name}}
{{__('texte.orders_arr.show_combined.selected_products')}}
@foreach($current_order->order_products as $index=>$order_product) @endforeach
{{strtoupper(__('texte.orders_arr.show_combined.id'))}} {{__('texte.orders_arr.show_combined.name')}} {{__('texte.orders_arr.show_combined.unit_measure')}} {{__('texte.orders_arr.show_combined.quantity')}} {{__('texte.orders_arr.show_combined.price')}} {{__('texte.orders_arr.show_combined.discount')}} {{__('texte.orders_arr.show_combined.single_price')}} {{__('texte.orders_arr.show_combined.super_discount')}} {{__('texte.orders_arr.show_combined.end_price')}}
{{$index+1}} {{$order_product->product}} {{$order_product->name}} {{$order_product->package_name}} {{$order_product->quantity_ordered / ($order_product->package==1 ? 1 : $order_product->package_count)}} {{Lang::get('texte.full_price_arr')[$order_product->price]}} {{$order_product->discount}} {{number_format($order_product->single_price*1.2*($order_product->package==1 ? 1 : $order_product->package_count), 5, '.', '')}} {{number_format($order_product->super_discount*1.2*($order_product->package==1 ? 1 : $order_product->package_count),5).($order_product->single_price!=0 ? ' ('.number_format($order_product->super_discount*100/$order_product->single_price,5).'%)' : ' (-----)')}} {{number_format(($order_product->quantity_ordered / ($order_product->package ==1 ? 1 : $order_product->package_count))*(number_format($order_product->single_price*($order_product->package ==1 ? 1 : $order_product->package_count)*1.2,5)-number_format($order_product->super_discount*1.2*($order_product->package==1 ? 1 : $order_product->package_count),5)), 5, '.', '')}}
{{__('texte.orders_arr.show_combined.final_amount')}}

{{__('texte.orders_arr.show_combined.discounts_amount')}}

{{__('texte.orders_arr.show_combined.total_amount')}}
@if(count($current_order->bonus_products)>0)
{{__('texte.orders_arr.show_combined.bonuses')}}
@foreach($current_order->bonus_products as $bonus_product) @endforeach
{{strtoupper(__('texte.orders_arr.show_combined.id'))}} {{__('texte.orders_arr.show_combined.name')}} {{__('texte.orders_arr.show_combined.unit_measure')}} {{__('texte.orders_arr.show_combined.quantity')}}
{{$bonus_product->product}} {{$bonus_product->name}} {{$bonus_product->package}} {{$bonus_product->quantity_ordered}}
@endif
@if(count($current_order->applied_promotions_descriptions)>0)
{{__('texte.orders_arr.show_combined.applied_promotions')}}
@foreach($current_order->applied_promotions_descriptions as $key=>$applied_promotion) @endforeach
{{__('texte.orders_arr.show_combined.number')}} {{strtoupper(__('texte.orders_arr.show_combined.id'))}} {{__('texte.orders_arr.show_combined.name')}} {{__('texte.orders_arr.show_combined.condition')}} {{__('texte.orders_arr.show_combined.bonus')}}
{{$key+1}} {{$applied_promotion->id}} {{$applied_promotion->title}} {!!$applied_promotion->promotion_description['promotion_condition']!!} {!!$applied_promotion->promotion_description['promotion_bonus']!!}
@endif
@endforeach
{{__('texte.orders_arr.show_combined.total_amount')}}

{{__('texte.orders_arr.show_combined.discounts_amount')}}

{{__('texte.orders_arr.show_combined.transport_amount')}}

{{__('texte.orders_arr.show_combined.final_amount')}}
@endsection