@extends('admin.layouts.app')
@section('content')
<div class="row">
    @include('admin.layouts.errors')
    <div class="col-lg-8">
        <div class="card">
            <div class="card-body">
                <h4 class="card-title">افزودن اعلان</h4>
                <form action="{{ route('notifications.store') }}" method="post">
                    @csrf
                    <div class="mb-4">
                        <label for="title">عنوان</label>
                        <input class="form-control" name="title" id="title" type="text" value="{{ old('title') }}" placeholder="عنوان اعلان" required>
                    </div>
                    <div class="mb-4">
                        <label for="description">توضیحات</label>
                        <textarea class="form-control" name="description" id="description" rows="5" placeholder="توضیحات">{{ old('description') }}</textarea>
                    </div>
                    <button type="submit" class="btn btn-primary">ثبت</button>
                    <a href="{{ route('notifications.index') }}" class="btn btn-outline-secondary">انصراف</a>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
