@extends('layouts.handa') @section('content') {!! Form::model($contact, ['url' => 'backdoor/contacts/save', 'class' => 'form-horizontal', 'autocomplete' => 'off', 'id' => 'contactForm']) !!}

Contacts | {{ $option }}

{!! Form::hidden('id', $id) !!}
{{ $errors->first('c_fname') }} {!! Form::text('c_fname', NULL, ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('c_mname') }} {!! Form::text('c_mname', NULL, ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('c_lname') }} {!! Form::text('c_lname', NULL, ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('c_number') }} {!! Form::text('c_number', NULL, ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('c_agency') }} {!! Form::text('c_agency', NULL, ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('c_position') }} {!! Form::text('c_position', NULL, ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('groups') }} {!! Form::select('groups[]', $groups, $option == 'Edit' || $option == 'View' ? $cg : NULL, ['class' => 'form-control input-sm chosen-select', 'multiple', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('is_active') }}
{!! Form::radio('is_active', 1, NULL, ['class' => 'form-check-input', 'id' => 'radio1', 'required']) !!}
{!! Form::radio('is_active', 0, NULL, ['class' => 'form-check-input', 'id' => 'radio2', 'required']) !!}
{!! Form::button(' Save', ['class' => 'btn btn-primary btn-block', 'type' => 'submit']) !!}
{!! Form::close() !!} @stop