@extends('admin::_layouts.content',['selectedMenu'=>'page']) @section('title') {!! ($item??false) ? 'Düzenle' : 'Yeni' !!} @endsection @section('content') @include('admin::_partials.tinymce')
{!! html()->model($item ?? [])->form($method,$methodURL)->open() !!} {!! skey() !!}
Sayfa Bilgileri
@if(config('nette-lang.enable'))
@foreach (\LaravelLocalization::getSupportedLocales() as $key => $lang)
{!! html()->label('Sayfa Başlığı ('.$lang['native'].')')->for('name') !!} {!! html()->text('name_'.$key)->placeholder('Sayfa Başlığı ('.$lang['native'].')')->addClass('form-control'); !!}
{!! html()->label('Spot ('. $lang['native'] .')')->for('spot_'.$key) !!} {!! html()->text('spot_'.$key)->placeholder('Spot ('. $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','true') !!}
@endif
{!! uploader( 'img', 'page_images', 'Sayfa Resimleri', 'page_images', 'images', null, true, (isset($item) ? $item->images : null), (isset($item) ? route($cOrderMediaRoute, ['id'=>$item->id]) : null), (isset($item) ? route($cUpdateMediaRoute,['id'=>$item->id]) : null), (isset($item) ? route($cDeleteMediaRoute,['id'=>$item->id]) : null) ) !!} @include('admin::_partials.meta')
@include('admin::_partials.sidebar._sidebar')
{!! backbtn(url()->previous()) !!} {!! savebtn() !!}
{!! html()->form()->close() !!}
@endsection