@extends('admin::_layouts.content',['selectedMenu'=>$cMenuKey]) @section('widget') {!! ($item??false) ? 'Düzenle' : 'Yeni' !!} @endsection @section('content') @include('admin::_partials.tinymce')
{!! html()->model($item ?? [])->form($method,$methodURL)->open() !!} {{--{{dd($item)}}--}} {!! skey() !!}
Soru Bilgileri
@if(config('nette-lang.enable'))
@foreach (\LaravelLocalization::getSupportedLocales() as $key => $lang)
{!! html()->label('Soru ('.$lang['native'].')')->for('name_'.$key) !!} {!! html()->text('name_'.$key)->placeholder('Soru ('.$lang['native'].')')->addClass('form-control'); !!}
{!! html()->label('Cevap ('.$lang['native'].')')->for('content_'.$key) !!} {!! html()->textarea('content_'.$key)->placeholder('Cevap ('.$lang['native'].')')->addClass('form-control')->data('editor','true'); !!}
@endforeach
@else
{!! html()->label('Sayfa Başlığı')->for('name') !!} {!! html()->text('name')->placeholder('Sayfa Başlığı')->addClass('form-control'); !!}
{!! html()->label('İçerik')->for('content') !!} {!! html()->textarea('content')->placeholder('İçerik')->addClass('form-control')->data('editor', 'false') !!}
{!! html()->label('URL')->for('url') !!} {!! html()->text('url')->placeholder('URL')->addClass('form-control') !!}
@endif
@include('admin::_partials.sidebar.elements.files') @if(count($cSidebarModules ?? [])) @foreach($cSidebarModules as $sidebarModule) @include($sidebarModule) @endforeach @endif @if($cOrderable)
Sıralama
{!! html()->label('Sıra')->for($cOrderableColumn ?? 'order_number') !!} {!! html()->text($cOrderableColumn ?? 'order_number')->placeholder('Sıra')->addClass('form-control')->value($item->$cOrderableColumn ?? 0); !!}
@endif
{!! backbtn(url()->previous()) !!} {!! savebtn() !!}
{!! html()->form()->close() !!}
@endsection