@extends('layouts.app') @section('link') @endsection @section('content')
@include('shared.messages')
{{__('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,explode(',',trim($price_list->validity))) ? $storage->name.',' : ''}} @endforeach
{{__('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.product')}} {{__('texte.price_lists_arr.show.forming_price')}} {{__('texte.price_lists_arr.show.discount_per')}} {{__('texte.price_lists_arr.show.fixed_price')}} {{__('texte.price_lists_arr.show.priority')}}
{{$price_list_condition->category->name ?? ''}} {{$price_list_condition->product->name ?? ''}} {{__('texte.price_types_arr_human')[$price_list_condition->price]}} {{$price_list_condition->price!=4 ? $price_list_condition->discount : ''}} {{$price_list_condition->price==4 ? $price_list_condition->fixed_price : ''}} {{$price_list_condition->priority}}
@endsection