<?php
use Livewire\Component;
use App\Models\BreakingNews;
?>

<div class="max-content">
    <header class="mb-10">
        <h1 class="text-2xl font-semibold tracking-tight text-gray-900">New Breaking News</h1>
        <p class="text-sm text-gray-500 mt-1">Create a new breaking news alert with timestamp.</p>
    </header>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session()->has('error')): ?>
        <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert">
            <span class="block sm:inline"><?php echo e(session('error')); ?></span>
        </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    <div class="card p-6">
        <form wire:submit.prevent="save" class="space-y-6">
            <div>
                <label class="block text-[11px] font-bold text-gray-500 uppercase tracking-wider mb-1.5">Content <span class="text-red-400">*</span></label>
                <textarea wire:model="content" rows="4" class="input-field w-full text-sm"
                    placeholder="Enter breaking news content..."></textarea>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['content'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-red-500 text-xs"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            <div>
                <label class="flex items-center gap-2 cursor-pointer">
                    <input type="checkbox" wire:model="is_active" class="rounded border-gray-300 text-[#99BC85] focus:ring-[#99BC85]">
                    <span class="text-sm font-semibold text-gray-700">Active</span>
                </label>
                <p class="text-[10px] text-gray-400 mt-1">Inactive breaking news will not be displayed on the frontend.</p>
            </div>

            <div class="flex gap-3 pt-4 border-t border-gray-100">
                <button type="submit" wire:loading.attr="disabled"
                    class="px-6 py-2 text-sm font-bold text-white rounded-md transition-colors"
                    style="background-color:#99BC85;">
                    <span wire:loading.remove>Save</span>
                    <span wire:loading>Saving...</span>
                </button>
                <a href="<?php echo e(route('admin.breaking')); ?>" class="px-4 py-2 text-sm font-semibold text-gray-600 bg-white border border-gray-200 rounded-md hover:bg-gray-50">
                    Cancel
                </a>
            </div>
        </form>
    </div>
</div><?php /**PATH D:\02-my freelance\00-DR_Padhi\DR_PADHI\storage\framework/views/livewire/views/9a4567bc.blade.php ENDPATH**/ ?>