Commit d050db1b by Bagus Pambudi

singlesite 5 bahasa fix bug category

parent d2fbcc5a
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div class="form-group @if ($errors->has('name_en')) has-error @endif"> <div class="form-group @if ($errors->has('name_en')) has-error @endif">
<label class="col-md-2 control-label">Category</label> <label class="col-md-2 control-label">Category</label>
<div class="col-md-10"> <div class="col-md-10">
{{ Form::text('name_en', $data->rEn->name, array('class' => 'form-control', 'required')) }} {{ Form::text('name_en', $data->rEn ? $data->rEn->name : null, array('class' => 'form-control', 'required')) }}
@if ($errors->has('name_en')) @if ($errors->has('name_en'))
<label id="login-error" class="error" for="login">{{$errors->first('name_en')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('name_en')}}</label>
@endif @endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment