@extends('layouts.admin') @use('App\Enums\ArticleStatus') @use('App\Enums\ArticleVisibility') @use('App\Http\Requests\Admin\ArticleRequest') @php $isEdit = $article->exists; $seo = $article->seo; $countryId = old('country_id', $article->country_id); $categoryId = old('category_id', $article->category_id); $currentCategory = $categoryTree->firstWhere('id', (int) $categoryId); @endphp @section('title', $isEdit ? 'Edit article' : 'New article') @section('breadcrumbs')