@extends('layouts.admin')
@section('style')
@parent
@endSection
@php
$form = config('admin.template_form');
@endphp
@section('content')
@component('admin.components.step_form_pages', [
'post_url'=>'',
'type'=>'templates',
'title'=> 'Setup',
'all_pages' =>['Setup','Customize'],
'step'=> '1',
])
@php $id = 'template_name'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent
@endcomponent
@php $id = 'init_type'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent
@endcomponent
@php $id = 'template_type'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent
@endcomponent
@php $id = 'template_description'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=> 'col-12', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@endcomponent
@php $id = 'template_lang'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=> 'col-12', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent
@endcomponent
@slot('footer_back')
@endslot
@slot('footer_next')
Next Step
@endslot
@endcomponent
@endsection
@section('script')
@parent
@endSection