@extends('layouts.app') @section('content')
{{ __('texte.products_arr.history.product_created')}} {{__('texte.products_arr.history.by')}} {{$history->userResponsible()->name }} | {{__('texte.products_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.products_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |
{{ __('texte.products_arr.history.product_deleted')}} {{ __('texte.products_arr.history.by')}} {{ $history->userResponsible()->name }} | {{ __('texte.products_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{ __('texte.products_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |
{{ $history->userResponsible()->name }} {{__('texte.products_arr.history.changed_field')}} @switch($history->fieldName()) @case('wrappage_piece') {{__('texte.products_arr.history.wrappage_piece')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()=='nothing' ? '" "' : $products[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $products[$history->newValue()]->name }} @break @case('wrappage_package') {{__('texte.products_arr.history.wrappage_package')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()=='nothing' ? '" "' : $products[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $products[$history->newValue()]->name }} @break @case('wrappage_pallet') {{__('texte.products_arr.history.wrappage_pallet')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()=='nothing' ? '" "' : $products[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $products[$history->newValue()]->name }} @break @case('package') {{__('texte.products_arr.history.package')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $packages[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $packages[$history->newValue()]->name }} @break @case('material') {{__('texte.products_arr.history.material')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $materials[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $materials[$history->newValue()]->name }} @break @case('size') {{__('texte.products_arr.history.size')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $sizes[$history->oldValue()]->value}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $sizes[$history->newValue()]->value }} @break @case('mark') {{__('texte.products_arr.history.mark')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $marks[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $marks[$history->newValue()]->name }} @break @case('category') {{__('texte.products_arr.history.category')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $categories[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $categories[$history->newValue()]->name }} @break @case('producer') {{__('texte.products_arr.history.producer')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $producers[$history->oldValue()]->name}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()=='nothing' ? '" "' : $producers[$history->newValue()]->name }} @break @case('producer_code') {{__('texte.products_arr.history.producer_code')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue() }} @break @case('producer_second_code') {{__('texte.products_arr.history.producer_second_code')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('name') {{__('texte.products_arr.history.name')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('measure') {{__('texte.products_arr.history.measure')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==1 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()==1 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} @break @case('price_supply') {{__('texte.products_arr.history.price_supply')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : number_format($history->oldValue()*1.2,5)}} {{__('texte.products_arr.history.to')}} {{ number_format($history->newValue()*1.2,5)}} @break @case('price_base') {{__('texte.products_arr.history.price_base')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : number_format($history->oldValue()*1.2,5)}} {{__('texte.products_arr.history.to')}} {{ number_format($history->newValue()*1.2,5)}} @break @case('price_recommend') {{__('texte.products_arr.history.price_recommend')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : number_format($history->oldValue()*1.2,5)}} {{__('texte.products_arr.history.to')}} {{ number_format($history->newValue()*1.2,5)}} @break @case('price_piece') {{__('texte.products_arr.history.price_piece')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : number_format($history->oldValue()*1.2,5)}} {{__('texte.products_arr.history.to')}} {{ number_format($history->newValue()*1.2,5)}} @break @case('piece_weight') {{__('texte.products_arr.history.piece_weight')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('package_weight') {{__('texte.products_arr.history.package_weight')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('pallet_weight') {{__('texte.products_arr.history.pallet_weight')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('piece_barcode') {{__('texte.products_arr.history.piece_barcode')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('piece_second_barcode') {{__('texte.products_arr.history.piece_second_barcode')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('package_barcode') {{__('texte.products_arr.history.package_barcode')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('package_second_barcode') {{__('texte.products_arr.history.package_second_barcode')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('package_count') {{__('texte.products_arr.history.package_count')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('pallet_count') {{__('texte.products_arr.history.pallet_count')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('min') {{__('texte.products_arr.history.min')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('max') {{__('texte.products_arr.history.max')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('min_sale') {{__('texte.products_arr.history.min_sale')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('max_sale') {{__('texte.products_arr.history.max_sale')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('spokesman_show') {{__('texte.products_arr.history.spokesman_show')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}} {{__('texte.products_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()]}} @break @case('spokesman_measure') {{__('texte.products_arr.history.spokesman_measure')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==0 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()==0 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} @break @case('spokesman_out_show') {{__('texte.products_arr.history.spokesman_out_show')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}} {{__('texte.products_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()]}} @break @case('spokesman_out_measure') {{__('texte.products_arr.history.spokesman_out_measure')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==0 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()==0 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} @break @case('client_show') {{__('texte.products_arr.history.client_show')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}} {{__('texte.products_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()]}} @break @case('client_measure') {{__('texte.products_arr.history.client_measure')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==0 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()==0 ? __('texte.products_arr.history.count') : __('texte.products_arr.history.measure_unit')}} @break @case('meta_title') {{__('texte.products_arr.history.meta_title')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('meta_keywords') {{__('texte.products_arr.history.meta_keywords')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('meta_description') {{__('texte.products_arr.history.meta_description')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('description') {{__('texte.products_arr.history.description')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()}} @break @case('active') {{__('texte.products_arr.history.active')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}} {{__('texte.products_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()]}} @break @case('unit') {{__('texte.products_arr.history.unit')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==0 ? __('texte.products_arr.history.weight_volume') : ( $history->oldValue()==1 ? __('texte.products_arr.history.weight_package') : __('texte.products_arr.history.weight'))}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()==0 ? __('texte.products_arr.history.weight_volume') : ( $history->newValue()==1 ? __('texte.products_arr.history.weight_package') : __('texte.products_arr.history.weight'))}} @break @case('is_wrappage') {{__('texte.products_arr.history.is_wrappage')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==0 ? __('texte.products_arr.history.no') : ( $history->oldValue()==1 ? __('texte.products_arr.history.wrappage_piece') : ($history->oldValue()==2 ? __('texte.products_arr.history.wrappage_package') : __('texte.products_arr.history.wrappage_pallet')))}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()==0 ? __('texte.products_arr.history.no') : ( $history->newValue()==1 ? __('texte.products_arr.history.wrappage_piece') : ($history->newValue()==2 ? __('texte.products_arr.history.wrappage_package') : __('texte.products_arr.history.wrappage_pallet')))}} @break @case('name_plus') {{__('texte.products_arr.history.name_plus')}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==0 ? __('texte.products_arr.history.name') : __('texte.products_arr.history.name_size')}} {{__('texte.products_arr.history.to')}} {{ $history->newValue()==0 ? __('texte.products_arr.history.name') : __('texte.products_arr.history.name_size')}} @break @default {{$history->fieldName()}} {{__('texte.products_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.products_arr.history.to')}} {{ $history->newValue() }} @break @endswitch | {{__('texte.products_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.products_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |