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

{{__('texte.brochures_arr.list_objects_conditions.brochure')}}

{{__('texte.brochures_arr.list_objects_conditions.name')}}: {{ $brochure->title }}
{{__('texte.brochures_arr.list_objects_conditions.description')}}: {{ $brochure->description }}
{{__('texte.brochures_arr.list_objects_conditions.brochure_period')}}: {{ __('texte.brochures_arr.list_objects_conditions.from').': '.date_format(new DateTime($brochure->date_from), 'd.m.Y H:i').' '.__('texte.brochures_arr.list_objects_conditions.hours').' - '.__('texte.brochures_arr.list_objects_conditions.to').': '.date_format(new DateTime($brochure->date_to), 'd.m.Y H:i').' '.__('texte.brochures_arr.list_objects_conditions.hours')}}
{{__('texte.brochures_arr.list_objects_conditions.validity')}}: @foreach($storages as $storage) {{in_array($storage->id,$brochure->validity) ? $storage->name.',' : ''}} @endforeach {{in_array('repr',$brochure->validity) ? (__('texte.brochures_arr.list_objects_conditions.representative').',') : ''}} {{in_array('ext_repr',$brochure->validity) ? (__('texte.brochures_arr.list_objects_conditions.ext_representative').',') : ''}} {{in_array('clients',$brochure->validity) ? (__('texte.brochures_arr.list_objects_conditions.clients').',') : ''}}
{{__('texte.brochures_arr.list_objects_conditions.active_f')}}: {{ $brochure->active == 1 ? __('texte.brochures_arr.list_objects_conditions.yes') : __('texte.brochures_arr.list_objects_conditions.no') }}
{{__('texte.brochures_arr.list_objects_conditions.brochure_objects')}}
@foreach($conditions as $condition) @endforeach
{{strtoupper(__('texte.brochures_arr.list_objects_conditions.id'))}} {{__('texte.brochures_arr.list_objects_conditions.type')}} {{__('texte.brochures_arr.list_objects_conditions.subtype')}} {{__('texte.brochures_arr.list_objects_conditions.contragent')}}
{{$condition->id}} {{$condition->type_name}} {{$condition->subtype_name}} {{$condition->company_name!='' ? $condition->company_name : $condition->user_name}}
@endsection