@extends('layouts.appnew')
@section('title')
Case History
@endsection
@section('navs')
@endsection
@section('content')
{!! Form::open(['url' => route('case_history.save', [$center_incharge->name(), $center_incharge->id]), 'files' => true]) !!}
@csrf
{!! EasyForm::setErrors($errors) !!}
{!! EasyForm::setSize('fullpage') !!}
{!! Form::hidden('previous_url', old('previous_url',URL::previous())) !!}
{!! EasyForm::viewInput('center_incharge_name', 'Center Incharge', $center_incharge->person->fullname()) !!}
{!! EasyForm::hidden('center_incharge_id', $center_incharge->id)!!}
{!! EasyForm::input('title', $case_history->label('title'), old('title', ''))!!}
{!! EasyForm::select('ch_type', $case_history->label('ch_type'), old('ch_type', ''), AppHelper::options('casehistory_types'))!!}
{!! EasyForm::textarea('body', $case_history->label('body'), old('body', ''), ['rows' => 12])!!}
*The field must be at least 2000 characters. [Approx: 30 lines]
{!! EasyForm::input('caption', $case_history->label('caption'), old('caption', ''))!!}
*Atleast 2 images are required
@for ($i=1; $i <= 5; $i++)
Warning: Undefined variable $i in
/var/www/html/pruthvi/resources/views/ch/case_history/create.blade.php on line
34
{!! EasyForm::file($image, $case_history->label($image), old($image, ''))!!}
@endfor
{!! EasyForm::submit('Submit') !!}
{!! Form::close() !!}
@endsection