@extends('layouts.dashboard')

@section('title', 'noticias')

@section('container-dashboard')
     <div class="layout-page">
          <!-- Navbar -->
            @include('layouts._includes.nav-menu')
          <!-- / Navbar -->

         <!-- Content wrapper -->
          <div class="content-wrapper">
            <!-- Content -->
            <div class="container-xxl flex-grow-1 container-p-y">
                <button type="button" class="btn mb-2 btn-primary" data-bs-toggle="modal" data-bs-target="#modal_noticia"> Adicionar noticias</button>

                @include('dashboard.admin.pages.noticias._includes.tabela-noticia')
                <div class="content-backdrop fade"></div>
          </div>
          <!-- Content wrapper -->
        </div>

          <form action="{{route('noticias.store')}}" method="POST" enctype="multipart/form-data">
            @csrf
            @include('dashboard.admin.pages.noticias._includes.modal-add-noticia')
        </form>
@endsection
