@extends('Frontend.Layouts.modal') @section('title') {!!trans('global.edit')!!} @stop @section('body') {!!Form::open(['route' => 'user_drivers.update', 'method' => 'PUT'])!!} {!!Form::hidden('id', $item->id)!!}
{!!Form::label('name', trans('validation.attributes.name').'*:')!!} {!!Form::text('name', $item->name, ['class' => 'form-control'])!!}
{!!Form::label('devices', trans('front.devices').':')!!} {!!Form::select('devices[]', groupDevices($devices, auth()->user()), $item->devices->pluck('id', 'id')->all(), ['class' => 'form-control', 'multiple' => 'multiple', 'data-live-search' => 'true'])!!}
{!! Form::label('device_id', trans('front.set_as_current').':') !!}
{!! Form::hidden('current', 0) !!} {!! Form::checkbox('current', 1, 0, ['data-disabler' => '#current_device_id;hide-disable']) !!} {!! Form::label(null) !!}
{!!Form::select('device_id', $devices->pluck('name', 'id')->prepend(trans('front.none'), '0')->all(), $item->device_id, ['id' => 'current_device_id', 'class' => 'form-control', 'data-live-search' => 'true'])!!}
{!!Form::label('rfid', trans('validation.attributes.rfid').':')!!} {!!Form::text('rfid', $item->rfid, ['class' => 'form-control'])!!}
{!!Form::label('phone', trans('validation.attributes.phone').':')!!} {!!Form::text('phone', $item->phone, ['class' => 'form-control'])!!}
{!!Form::label('email', trans('validation.attributes.email').':')!!} {!!Form::text('email', $item->email, ['class' => 'form-control'])!!}
{!!Form::label('description', trans('validation.attributes.description').':')!!} {!!Form::textarea('description', $item->description, ['class' => 'form-control', 'rows' => 2])!!}
{!!Form::close()!!} @stop