@extends('admin.layouts.app') @section('title', 'Add Page ') @section('content')

{{ $data == null ? 'Add' : 'Update ' }} Page {{ $data == null ? '' : '#' . $data->id }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{ $data == null ? 'Upload' : 'Update ' }} Page Details

@csrf {{ $data != null ? method_field('PUT') : '' }}
{!! $errors->first('name', '

:message

') !!}
@if ($data) @foreach ($data->sections as $item)
@if ($item->type == 'text') @elseif ($item->type == 'textarea') @elseif ($item->type == 'image') value != null ? 'data-default-file = ' . asset($item->value) : '' }}> @endif
@endforeach @endif
@if ($data && env('APP_DEBUG'))
@endif
0%
@endsection @push('css') @endpush @push('modals') @endpush @push('js') @if ($data) @endif @endpush