@extends('layouts.app') @section('page-title') {{ __('Auth Page') }} @endsection @section('breadcrumb') @endsection @php $profile = asset(Storage::url('upload/profile')); $settings = settings(); $activeTab = session('tab', 'footer_column_1'); @endphp @push('script-page') @endpush @section('content')
{{ Form::model($authPage, ['route' => ['authPage.update', encrypt($authPage->id) ?? encrypt(1)], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }}
{{ Form::label('section', __('Section Enabled'), ['class' => 'form-label']) }}
{{ Form::hidden('section', '0') }} {{ Form::checkbox('section', '1', $authPage->section ?? false, ['class' => 'form-check-input', 'role' => 'switch']) }}
{{ Form::label('image', __('Image'), ['class' => 'form-label']) }} @if (!empty($authPage->image)) @endif {{ Form::file('image', ['class' => 'form-control']) }}
@if (!empty($titles) && count($titles) > 0) @foreach ($titles as $index => $title)
{{ Form::label('Sec6_Box_title', __('Title'), ['class' => 'form-label']) }} {{ Form::text('title[]', $title, ['class' => 'form-control', 'placeholder' => __('Enter title')]) }}
{{ Form::label('Sec6_Box_subtitle', __('Sub Title'), ['class' => 'form-label']) }} {{ Form::text('description[]', $descriptions[$index] ?? '', ['class' => 'form-control', 'placeholder' => __('Enter subtitle')]) }}
@endforeach @else
{{ Form::label('title', __('Title'), ['class' => 'form-label']) }} {{ Form::text('title[]', '', ['class' => 'form-control', 'placeholder' => __('Enter title')]) }}
{{ Form::label('description', __('Sub Title'), ['class' => 'form-label']) }} {{ Form::text('description[]', '', ['class' => 'form-control', 'placeholder' => __('Enter subtitle')]) }}
@endif
{{ Form::hidden('tab', 'some_value') }} {{ Form::submit(__('Save'), ['class' => 'btn btn-secondary btn-rounded']) }}
{!! Form::close() !!}
@endsection