@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.user.fiche'], 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'main_form', 'files' => false]) !!} {!! Form::hidden('id', $user->id, ['id' => 'user_id']) !!}
{!! Element::mainbloc('open', __('app.user_informations'), 'fas fa-table') !!} {!! Twb::admin_text('login',__('app.user_login'),$user->login,[], $errors->first('login')) !!} {!! Twb::admin_password('password',__('app.user_password_if_updated'),'',[], $errors->first('password')) !!} {!! Twb::admin_password('password_confirmation',__('app.user_password_confirmation_if_updated'),'',[], $errors->first('password_confirmation')) !!} {!! Element::mainbloc('close') !!}
{!! Element::mainbloc('open', __('app.user_attrs'), 'fas fa-table') !!} {!! Twb::admin_select('active', __('app.user_type'),$user->active,[], $errors->first('active'), '','', ['1' => __('app.active'),'0' => __('app.inactive')]) !!} {!! Twb::admin_select('is_admin', __('app.user_isadmin'),$user->is_admin,[], $errors->first('active'), '','', ['1' => __('app.yes'),'0' => __('app.no')]) !!} {!! Twb::admin_select('lang', __('app.user_lang'),@$user->lang,[], $errors->first('active'), '','', Helper::arrayLang()) !!} {!! 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.user_depots'), 'fas fa-table') !!}
@foreach($depots AS $d) @endforeach
{{ __('app.depot_customer') }} {{ __('app.depot_active') }} {{ __('app.depot_fiche') }} {{ __('app.delete_relation') }}
{{ __('app.depot_customer') }} {{ __('app.depot_active') }} {{ __('app.depot_fiche') }} {{ __('app.delete_relation') }}
{{ $d->customer }} @if($d->active == 1) {{ __('app.active') }} @else {{ __('app.inactive') }} @endif {{ __('app.fiche') }} {{ __('app.detach_relation') }}
{!! Element::mainbloc('close') !!}
{!! Element::mainbloc('open', __('app.user_delete'), 'fas fa-table') !!} {{ __('app.danger_delete_user')}}
{!! Form::button(__('app.delete_user'), ['type' => 'button','','class' => 'btn btn-lg btn-danger','id' => 'deleteButton' ]) !!}
{!! Element::mainbloc('close') !!}
@stop @section('footer') @stop