@extends('employee.layouts.app')
@section('title', 'Write Article')
@section('page-title', 'Write Article')

@push('styles')
<script src="https://cdn.tiny.cloud/1/{{ config('services.tinymce.api_key', 'no-api-key') }}/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
@endpush

@section('content')
<div class="mb-6">
    <h2 class="text-xl font-bold text-gray-800">Create Blog Article</h2>
    <p class="text-sm text-gray-500 mt-1">Write your article and submit it for admin approval.</p>
</div>

@include('employee.blog-articles._form', [
    'action' => route('employee.blog-articles.store'),
    'method' => 'POST',
    'blogArticle' => new \App\Models\BlogArticle(),
    'categories' => $categories,
])
@endsection

@push('scripts')
@include('admin.blog-articles._tinymce')
@endpush
