|
|
@ -20,60 +20,63 @@
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
@switch($set->type)
|
|
|
|
@switch($set->type)
|
|
|
|
@case('longtext')
|
|
|
|
@case('longtext')
|
|
|
|
<textarea name="{{$set->key}}" id="{{$set->key}}" class="form-control"
|
|
|
|
<textarea name="{{$set->key}}" id="{{$set->key}}" class="form-control"
|
|
|
|
rows="5">{{$set->value}}</textarea>
|
|
|
|
rows="5">{{$set->value}}</textarea>
|
|
|
|
@break
|
|
|
|
@break
|
|
|
|
@case('checkbox')
|
|
|
|
@case('checkbox')
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md">
|
|
|
|
<div class="col-md">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md">
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type="radio" name="{{$set->key}}"
|
|
|
|
|
|
|
|
@if($set->value == 'yes') checked @endif value="yes">
|
|
|
|
|
|
|
|
{{__("Yes")}}
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md">
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type="radio" name="{{$set->key}}" value="no"
|
|
|
|
|
|
|
|
@if($set->value == 'no') checked @endif>
|
|
|
|
|
|
|
|
{{__("No")}}
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md">
|
|
|
|
@break
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type="radio" name="{{$set->key}}" @if($set->value == 'yes') checked @endif value="yes">
|
|
|
|
|
|
|
|
{{__("Yes")}}
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md">
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type="radio" name="{{$set->key}}" value="no" @if($set->value == 'no') checked @endif>
|
|
|
|
|
|
|
|
{{__("No")}}
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@break
|
|
|
|
|
|
|
|
@case('code')
|
|
|
|
@case('code')
|
|
|
|
<textarea dir="ltr" name="{{$set->key}}" id="{{$set->key}}" class="form-control"
|
|
|
|
<textarea dir="ltr" name="{{$set->key}}" id="{{$set->key}}" class="form-control"
|
|
|
|
rows="5">{{$set->value}}</textarea>
|
|
|
|
rows="5">{{$set->value}}</textarea>
|
|
|
|
@break
|
|
|
|
@break
|
|
|
|
@case('editor')
|
|
|
|
@case('editor')
|
|
|
|
<textarea name="{{$set->key}}" id="{{$set->key}}" class="ckeditor form-control"
|
|
|
|
<textarea name="{{$set->key}}" id="{{$set->key}}" class="ckeditor form-control"
|
|
|
|
rows="5">{{$set->value}}</textarea>
|
|
|
|
rows="5">{{$set->value}}</textarea>
|
|
|
|
@break
|
|
|
|
@break
|
|
|
|
@case('category')
|
|
|
|
@case('category')
|
|
|
|
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
|
|
|
|
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
|
|
|
|
@foreach($cats as $cat )
|
|
|
|
@foreach($cats as $cat )
|
|
|
|
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
|
|
|
|
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
|
|
|
|
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
|
|
|
|
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
@break
|
|
|
|
@break
|
|
|
|
@case('cat')
|
|
|
|
@case('cat')
|
|
|
|
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
|
|
|
|
<select name="{{$set->key}}" id="{{$set->key}}" class="form-control">
|
|
|
|
@foreach($pcats as $cat )
|
|
|
|
@foreach($pcats as $cat )
|
|
|
|
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
|
|
|
|
<option @if (old($set->key,$set->value??null) == $cat->id ) selected
|
|
|
|
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
|
|
|
|
@endif value="{{$cat->id }}"> {{$cat->name}} </option>
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
@break
|
|
|
|
@break
|
|
|
|
@case('image')
|
|
|
|
@case('image')
|
|
|
|
<img src="{{asset('images/'.str_replace('_','.',$set->key))}}" style="max-height: 150px" alt="cover">
|
|
|
|
<img src="{{asset('images/'.str_replace('_','.',$set->key))}}?{{time()}}"
|
|
|
|
<input type="file" name="pic[{{$set->key}}]" id="{{$set->key}}"
|
|
|
|
class="img-fluid" style="max-height: 150px;max-width: 45%" alt="cover">
|
|
|
|
accept="image/*"
|
|
|
|
<input type="file" name="pic[{{$set->key}}]" id="{{$set->key}}"
|
|
|
|
class="form-control-file"/>
|
|
|
|
accept="image/*"
|
|
|
|
@break
|
|
|
|
class="form-control-file"/>
|
|
|
|
|
|
|
|
@break
|
|
|
|
@default
|
|
|
|
@default
|
|
|
|
<input type="{{$set->type}}" name="{{$set->key}}" id="{{$set->key}}"
|
|
|
|
<input type="{{$set->type}}" name="{{$set->key}}" id="{{$set->key}}"
|
|
|
|
class="form-control" value="{{$set->value}}"/>
|
|
|
|
class="form-control" value="{{$set->value}}"/>
|
|
|
|
@endswitch
|
|
|
|
@endswitch
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -82,8 +85,8 @@
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
<li class="list-group-item">
|
|
|
|
<li class="list-group-item">
|
|
|
|
<input type="submit" value="{{__("Save")}}" class="btn btn-primary" />
|
|
|
|
<input type="submit" value="{{__("Save")}}" class="btn btn-primary"/>
|
|
|
|
<input type="reset" value="{{__("Reset")}}" class="btn btn-secondary" />
|
|
|
|
<input type="reset" value="{{__("Reset")}}" class="btn btn-secondary"/>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|