@extends('admin.layouts.master') @section('css') @endsection @section('content')
{!! Form::model($row,[ 'method' => 'PUT', 'route' => [\App\Helpers\Helper::adminPrefix() . '.update', $row], 'name' => 'user-form', 'id' => 'user-form', 'autocomplete' => 'off' ]) !!}

{{ __('Edit') }} {{ \App\Helpers\Helper::pagePrefix(2) }}

Cancel
{!! Form::label('lang_id', 'Language :', ['class' => 'control-label']) !!} {!! Form::select('lang_id', \App\Helpers\Helper::language(false), old('lang_id', $row->lang_id), ['class' => $errors->has('lang_id') ? 'form-control is-invalid' : 'form-control', 'id' => 'role_id']) !!} @if ($errors->has('lang_id')) {{ $errors->first('lang_id') }} @endif
{!! Form::label('title', 'Title :', ['class' => 'control-label']) !!} {!! Form::text('title', old('title', $row->title), ['class' => $errors->has('title') ? 'form-control is-invalid' : 'form-control', 'id' => 'title', 'placeholder' => 'Page title']) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::label('status', 'Active :', ['class' => 'control-label']) !!}
{!! Form::radio('status', '1', ($row->active == 1 ? true : false), ['id' => 'statuson']) !!} {!! Form::label('statuson', 'Yes') !!}
{!! Form::radio('status', '0', ($row->active != 1 ? true : false), ['id' => 'statusoff']) !!} {!! Form::label('statusoff', 'No') !!}
{!! Form::label('description', 'Description :', ['class' => 'control-label']) !!} {!! Form::textarea('description', old('description', $row->description), ['class' => $errors->has('description') ? 'form-control is-invalid' : 'form-control', 'id' => 'description', 'placeholder' => 'Description', 'rows' => 12]) !!} @if ($errors->has('description')) {{ $errors->first('description') }} @endif
{!! Form::close() !!}
@endsection @section('script') @endsection