@extends('layouts.admin') @section('pageTitle',__('default.templates')) @section('innerTitle',__('default.customize').': '.$template->name) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.templates')=>__('default.site-theme'), '#'=>__('default.customize') ]]) @endsection @section('content')

@foreach($settings as $key=>$option)

{{ $option['description'] }}

@csrf
{{ Form::select('enabled', ['1'=>__('default.enabled'),'0'=>__('default.disabled')], $option['enabled'], ['class'=>'form-control']) }}

@if(file_exists('./templates/'.currentTemplate()->directory.'/assets/previews/'.$key.'.jpg')) @endif
@include($option['form'],$option['values'])
@if(file_exists('./templates/'.currentTemplate()->directory.'/assets/previews/'.$key.'.jpg')) @endif
@endforeach
@endsection @section('header') @endsection @section('footer') @include('admin.partials.image-browser') @endsection