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

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

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

{{$model->name}}

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

{{$model->document_no}}

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

{{$model->document_date}}

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

{!!html_entity_decode($model->description)!!}

{{App\Language::trans('Solution Listing')}}

@foreach($model->solutions as $index => $row) @if($index >= 1)
@endif
{{-- settled by --}}
{!! Form::label('settled_by', App\Language::trans('Settled By'), ['class'=>'control-label col-md-4']) !!}

{{$row->settled_by}}

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

{{$row->settled_at}}

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

{!!html_entity_decode($row->solution)!!}

@endforeach

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

{!! Form::label('settled_by', App\Language::trans('Settled By'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('settled_by', null, ['class'=>'form-control']) !!} {!!$errors->first('settled_by', '')!!}
{!! Form::label('settled_at', App\Language::trans('Settled At'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('settled_at', null, ['class'=>'form-control settled_at']) !!} {!!$errors->first('settled_at', '')!!}
{!! Form::label('solution', App\Language::trans('Solution'), ['class'=>'control-label col-md-2']) !!}
{!! Form::textarea('solution', null, ['rows'=>'5','class'=>'form-control']) !!} {!!$errors->first('solution', '')!!}
{!! Form::close() !!} @endsection @section('script') CKEDITOR.replace('solution') init_daterange($(".settled_at")); @endsection