@extends('Frontend.Layouts.modal') @section('title', trans('global.edit')) @section('body') {!!Form::open(['route' => 'user_gprs_templates.update', 'method' => 'PUT'])!!} {!!Form::hidden('id', $item->id)!!}
{!!Form::label('title', trans('validation.attributes.title').':')!!} {!!Form::text('title', $item->title, ['class' => 'form-control'])!!}
{!!Form::label('adapted', trans('validation.attributes.adapted').':')!!} {!! Form::select('adapted', $adaptedies, $item->adapted, ['class' => 'form-control']) !!}
@if(auth()->user()->perm('device.protocol', 'view'))
{!!Form::label('protocol', trans('validation.attributes.device_protocol').':')!!} {!!Form::select('protocol', $protocols, $item->protocol, ['class' => 'form-control', 'data-live-search' => 'true'])!!}
@endif @if(auth()->user()->perm('devices', 'view'))
{!!Form::label('devices', trans('validation.attributes.devices').':')!!} {!! Form::select('devices[]', groupDevices($devices, auth()->user()), $item->devices, ['class' => 'form-control multiexpand', 'multiple' => 'multiple', 'data-live-search' => 'true', 'data-actions-box' => 'true']) !!}
@endif
{!!Form::label('message', trans('validation.attributes.message').':')!!} {!!Form::textarea('message', $item->message, ['class' => 'form-control', 'rows' => 3])!!}
{!! trans('front.raw_command_supports') !!}

{!! trans('front.gprs_template_variables') !!}
{!!Form::close()!!} @stop