@extends('app.layouts.main') @section('header') @stop @section('content') @include('app.partials.breadcrumb') @include('app.partials.titre') @include('app.partials.messages') {!! Form::open(['route' => ['post.admin.depot.fiche'], 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'main_form', 'files' => false]) !!} {!! Form::hidden('id', $depot->id, ['id' => 'depot_id']) !!}
{{ __('app.depot_code_divalto') }}
{{ $depot->depot_code_divalto }}
{!! Element::mainbloc('open', __('app.depot_informations'), 'fas fa-table') !!} {!! Twb::admin_text('customer',__('app.depot_customer'),$depot->customer,[], $errors->first('customer')) !!} {!! Twb::admin_text('customername',__('app.depot_customername'),$depot->customername,[], $errors->first('customername')) !!} {!! Twb::admin_select('type', __('app.depot_type'),$depot->type,[], $errors->first('type'), '','', Helper::arrayStockType()) !!} {!! Element::mainbloc('close') !!}
{!! Element::mainbloc('open', __('app.depot_attrs'), 'fas fa-table') !!} {!! Twb::admin_text('depot_code_divalto',__('app.depot_code_divalto'),$depot->depot_code_divalto,[], $errors->first('depot_code_divalto')) !!} {!! Twb::admin_text('days_consignations',__('app.days_consignations'),$depot->days_consignations,[], $errors->first('days_consignations')) !!} {!! Twb::admin_text('delivery_delay',__('app.delivery_delay'),$depot->delivery_delay,[], $errors->first('delivery_delay')) !!} {!! Twb::admin_select('is_rollpack', __('app.depot_is_rollpack'),$depot->is_rollpack,[], $errors->first('is_rollpack'), '','', ['1' => __('app.yes'),'0' => __('app.no')]) !!} {!! Twb::admin_select('active', __('app.depot_active'),$depot->active,[], $errors->first('active'), '','', ['1' => __('app.active'),'0' => __('app.inactive')]) !!} {!! Form::button(__('app.update'), ['type' => 'submit','','class' => 'btn btn-block btn-lg btn-success','id' => 'updateButton' ]) !!} {!! Element::mainbloc('close') !!}
{!! Form::close() !!}
{!! Element::mainbloc('open', __('app.depot_users'), 'fas fa-table') !!}
@foreach($users AS $u) @endforeach
{{ __('app.user_login') }} {{ __('app.user_lang') }} {{ __('app.user_active') }} {{ __('app.user_fiche') }} {{ __('app.delete_relation') }}
{{ __('app.user_login') }} {{ __('app.user_lang') }} {{ __('app.user_active') }} {{ __('app.user_fiche') }} {{ __('app.delete_relation') }}
{{ $u->login }} {{ $u->lang }} @if($u->active == 1) {{ __('app.active') }} @else {{ __('app.inactive') }} @endif {{ __('app.fiche') }} {{ __('app.detach_relation') }}
{!! Element::mainbloc('close') !!} {!! Element::mainbloc('open', __('app.depot_minmax'), 'fas fa-table') !!}
@foreach($articles AS $a) @endforeach
{{ __('app.article_reference') }} {{ __('app.article_designation') }} {{ __('app.article_min') }} {{ __('app.article_max') }} {{ __('app.delete_relation') }}
{{ __('app.article_reference') }} {{ __('app.article_designation') }} {{ __('app.article_min') }} {{ __('app.delete_relation') }} {{ __('app.delete_relation') }}
{{ $a->reference }} {{ $a->designation }} {!! Form::number('min',@$minmax_array[$a->id]['min'], ['data-product' => $a->id, 'data-type' => 'min','class' => 'form-control changeminmax', 'min' => '0', 'id' => 'min_'.$a->id]) !!} {!! Form::number('max',@$minmax_array[$a->id]['max'], ['data-product' => $a->id, 'data-type' => 'max','class' => 'form-control changeminmax', 'min' => '0', 'id' => 'max_'.$a->id]) !!} @if(isset($array_products_in_stock[$a->id])) {{ __('app.in_stock') }} @else {{ __('app.detach_relation') }} @endif
{!! Element::mainbloc('close') !!}
{!! Element::mainbloc('open', __('app.add_users'), 'fas fa-table') !!} {!! Twb::admin_text('user',__('app.search_user'),"",['autocomplete' => "off", "id" => "existing_user", "data-id" => $depot->id], $errors->first('user')) !!}
{!! Element::mainbloc('close') !!}
{!! Element::mainbloc('open', __('app.depot_delete'), 'fas fa-table') !!} {{ __('app.danger_delete_depot')}}
{!! Form::button(__('app.delete_depot'), ['type' => 'button','','class' => 'btn btn-lg btn-danger','id' => 'deleteButton' ]) !!}
{!! Element::mainbloc('close') !!}
@stop @section('footer') @stop