@extends('admin::_layouts.content',['selectedMenu'=>'widget']) @section('title') {!! ($item??false) ? 'Düzenle' : 'Yeni' !!} @endsection @section('content') @include('admin::_partials.tinymce')
{!! html()->model($item ?? [])->form($method,$methodURL)->open() !!} {{--{{dd($item)}}--}} {!! skey() !!}
Widget Bilgileri
@if(config('nette-lang.enable'))
@foreach (\LaravelLocalization::getSupportedLocales() as $key => $lang)
{!! html()->label('Adı ('.$lang['native'].')')->for('name_'.$key) !!} {!! html()->text('name_'.$key)->placeholder('Adı ('.$lang['native'].')')->addClass('form-control'); !!}
{!! html()->label('İçerik ('. $lang['native'] .')')->for('content_'.$key) !!} {!! html()->textarea('content_'.$key)->placeholder('İçerik ('. $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._sidebar')
{!! backbtn(url()->previous()) !!} {!! savebtn() !!}
{!! html()->form()->close() !!}
@endsection