@extends('admin.layouts.admin') @section('content') @php $fontColors = getFontColors(); @endphp @php $fonts = get_fonts(); @endphp
@if(Session::has('message'))

{{ Session::get('message') }}

@endif
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@include('admin.includes.font-size', ['name' => '1', 'fontColors' => $fontColors, 'fonts' => $fonts])
@include('admin.includes.font-size', ['name' => '2', 'fontColors' => $fontColors, 'fonts' => $fonts])
@include('admin.includes.font-size', ['name' => '3', 'fontColors' => $fontColors, 'fonts' => $fonts])
@include('admin.includes.font-size', ['name' => '4', 'fontColors' => $fontColors, 'fonts' => $fonts])
image_1 ? '' : 'required' }} name="image_1" class="form-control" type="file" accept="image/jpg, image/jpeg, image/png, image/webp" onchange="loadFile_1(event)">
@isset($section->image_1) @if (Storage::exists($section->image_1)) @else @endif @else @endisset
@include('admin.includes.font-size', ['name' => '5', 'fontColors' => $fontColors, 'fonts' => $fonts])
@include('admin.includes.font-size', ['name' => '6', 'fontColors' => $fontColors, 'fonts' => $fonts])
image_2 ? '' : 'required' }} name="image_2" class="form-control" type="file" accept="image/jpg, image/jpeg, image/png, image/webp" onchange="loadFile_2(event)">
@isset($section->image_2) @if (Storage::exists($section->image_2)) @else @endif @else @endisset
@include('admin.includes.font-size', ['name' => '7', 'fontColors' => $fontColors, 'fonts' => $fonts])
@include('admin.includes.font-size', ['name' => '8', 'fontColors' => $fontColors, 'fonts' => $fonts])
image_3 ? '' : 'required' }} name="image_3" class="form-control" type="file" accept="image/jpg, image/jpeg, image/png, image/webp" onchange="loadFile_3(event)">
@isset($section->image_3) @if (Storage::exists($section->image_3)) @else @endif @else @endisset
@include('admin.includes.font-size', ['name' => '9', 'fontColors' => $fontColors, 'fonts' => $fonts])
@include('admin.includes.font-size', ['name' => '10', 'fontColors' => $fontColors, 'fonts' => $fonts])
image_4 ? '' : 'required' }} name="image_4" class="form-control" type="file" accept="image/jpg, image/jpeg, image/png, image/webp" onchange="loadFile_4(event)">
@isset($section->image_4) @if (Storage::exists($section->image_4)) @else @endif @else @endisset
@include('admin.includes.font-size', ['name' => '11', 'fontColors' => $fontColors, 'fonts' => $fonts])
@include('admin.homepage_sections.common-js') @endsection