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

{{__('texte.price_lists_arr.show.show_price_list')}}

{{__('texte.price_lists_arr.show.name')}}: {{ $price_list->title }}
{{__('texte.price_lists_arr.show.descirption')}}: {{ $price_list->description }}
{{__('texte.price_lists_arr.show.price_list_validity')}}: {{ __('texte.price_lists_arr.show.from').date_format(new DateTime($price_list->date_from), 'd.m.Y').' - '.__('texte.price_lists_arr.show.to').date_format(new DateTime($price_list->date_to), 'd.m.Y')}}
@if($price_list->condition!='')
{{__('texte.price_lists_arr.show.condition')}}: {{ $price_list->condition }}
@endif @if($price_list->condition!='')
{{__('texte.price_lists_arr.show.period')}}: {{ $price_list->period }}
@endif
{{__('texte.price_lists_arr.show.validity')}}: @foreach($storages as $storage) {{in_array($storage->id,$price_list->validity) ? $storage->name.',' : ''}} @endforeach {{in_array('repr',$price_list->validity) ? __('texte.price_lists_arr.show.representative') : ''}} {{in_array('ext_repr',$price_list->validity) ? __('texte.price_lists_arr.show.ext_representative') : ''}} {{in_array('clients',$price_list->validity) ? __('texte.price_lists_arr.show.clients') : ''}}
{{__('texte.price_lists_arr.show.active')}}: {{ $price_list->active == 1 ? __('texte.price_lists_arr.show.yes') : __('texte.price_lists_arr.show.no') }}
{{__('texte.price_lists_arr.show.price_list_conditions')}}: @foreach($price_list_conditions as $price_list_condition) @endforeach
{{__('texte.price_lists_arr.show.category')}} {{__('texte.price_lists_arr.show.producer')}} {{__('texte.price_lists_arr.show.mark')}} {{__('texte.price_lists_arr.show.package')}} {{__('texte.price_lists_arr.show.material')}} {{__('texte.price_lists_arr.show.size')}} {{__('texte.price_lists_arr.show.product')}} {{__('texte.price_lists_arr.show.price')}} {{__('texte.price_lists_arr.show.discount')}} {{__('texte.price_lists_arr.show.fixed_price')}} {{__('texte.price_lists_arr.show.condition')}} {{__('texte.price_lists_arr.show.period')}} {{__('texte.price_lists_arr.show.condition_discount')}} {{__('texte.price_lists_arr.show.condition_fixed_price')}} active!=1 ? "disabled" : ""}} title="{{__('texte.price_lists_arr.show.add_condition')}}">
{{isset($price_list_condition->condition_category->parent->parent->name) ? $price_list_condition->condition_category->parent->parent->name.'\\' : ''}}{{isset($price_list_condition->condition_category->parent->name) ? $price_list_condition->condition_category->parent->name.'\\' : ''}}{{$price_list_condition->condition_category->name ?? ''}} {{$price_list_condition->condition_producer->name ?? ''}} {{$price_list_condition->condition_mark->name ?? ''}} {{$price_list_condition->condition_package->name ?? ''}} {{$price_list_condition->condition_material->name ?? ''}} {{isset($price_list_condition->condition_size->value) ? $price_list_condition->condition_size->value.' '.($price_list_condition->condition_size->unit==0 ? __('texte.price_lists_arr.show.l') : __('texte.price_lists_arr.show.kg')) : ''}} {{$price_list_condition->condition_product->name ?? ''}} @if (isset($price_list_condition->price) && $price_list_condition->price!=0) {{ Lang::get('texte.price_arr')[$price_list_condition->price] }} @endif @if (isset($price_list_condition->discount)) {{ $price_list_condition->price!=4 ? $price_list_condition->discount.'%' : ''}} @endif @if (isset($price_list_condition->fixed_price)) {{ $price_list_condition->price==4 ? number_format($price_list_condition->fixed_price*1.2,5).__('texte.price_lists_arr.show.bgn') : ''}} @endif @if (isset($price_list_condition->condition)) {{ number_format($price_list_condition->condition*1.2,5).__('texte.price_lists_arr.show.bgn')}} @endif @if (isset($price_list_condition->cond_period)) {{ $price_list_condition->cond_period.__('texte.price_lists_arr.show.days')}} @endif @if (isset($price_list_condition->cond_discount) && $price_list_condition->cond_discount!=0) {{ $price_list_condition->price!=4 ? $price_list_condition->cond_discount.'%' : ''}} @endif @if (isset($price_list_condition->cond_fixed_price)) {{ $price_list_condition->price==4 ? number_format($price_list_condition->cond_fixed_price*1.2,5).__('texte.price_lists_arr.show.bgn') : ''}} @endif
{{ method_field('DELETE') }} {{ csrf_field() }}
@if($price_list->active==1) @if($price_list->up_to_date==0) {{__('texte.price_lists_arr.show.price_list_generate')}} @else {{__('texte.price_lists_arr.show.show_price_list')}} @endif @endif
@endsection