@extends('_version_02.commons.layouts.admin') @section('content') {!! Form::model($model, ['class'=>'form-horizontal']) !!} @include('_version_02.commons.layouts.partials._alert')

{{App\Language::trans('Detail Form')}}

{!! Form::label('code', App\Language::trans('Code'), ['class'=>'control-label col-md-4']) !!}

{{$model->code}}

{!! Form::label('symbol', App\Language::trans('Symbol'), ['class'=>'control-label col-md-4']) !!}

{{$model->symbol}}

{!! Form::label('status', App\Language::trans('Status'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_status_string('status')}}

{!! Form::label('is_default', App\Language::trans('Is Default'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_answer_string('is_default')}}

{!! Form::label('is_primary', App\Language::trans('Is Primary'), ['class'=>'control-label col-md-4']) !!}

{{$model->display_answer_string('is_primary')}}

{!! Form::label('rate', App\Language::trans('Rate'), ['class'=>'control-label col-md-4']) !!}

{{$model->rate}}

{!! Form::label('remark', App\Language::trans('Remark'), ['class'=>'control-label col-md-2']) !!}

{{nl2br($model->remark)}}

{!! Form::close() !!} @endsection @section('script') @if($model->is_primary) $("input[name=rate]").closest(".form-group").hide(); @endif @endsection