@extends('Admin.Layouts.modal')
@section('title')
     {{ trans('global.edit') }}
@stop
@section('body')
    {!! Form::open(['route' => 'admin.device_config.update', 'method' => 'PUT']) !!}
        {!!Form::hidden('id', $item->id)!!}
        
            {!! Form::hidden('active', 0) !!}
            {!! Form::checkbox('active', 1, $item->active) !!}
            {!! Form::label('active', trans('validation.attributes.active') ) !!}
        
        
            {!! Form::label('brand', trans('validation.attributes.brand')) !!}
            {!! Form::text('brand', $item->brand, ['class' => 'form-control']) !!}
        
        
            {!! Form::label('model', trans('front.model')) !!}
            {!! Form::text('model', $item->model, ['class' => 'form-control']) !!}
        
        @if ($item->edited)
        
            {!! Form::hidden('use_default', 0) !!}
            {!! Form::checkbox('use_default', 1, false) !!}
            {!! Form::label('use_default', trans('global.use_default') ) !!}
        
        @endif
        @include("Admin.DeviceConfig.partials._commands_panel", ['commands' => $commands])
    {!! Form::close() !!}
    
        @include("Admin.DeviceConfig.partials._command")
    
@stop