<?php $text = Auth('admin')->User()->dashboard_style == 'light' ? 'dark' : 'light'; ?>
@extends('layouts.app')
@section('content')
    @include('admin.topmenu')
    @include('admin.sidebar')
    <div class="main-panel">
        <div class="content">
            <div class="page-inner">
                <div class="page-header"><h4 class="page-title text-{{ $text }}">Add New Panel</h4></div>
                @if($errors->any())<div class="alert alert-danger"><ul class="mb-0">@foreach($errors->all() as $e)<li>{{ $e }}</li>@endforeach</ul></div>@endif
                <form action="{{ route('admin.panels.store') }}" method="POST" enctype="multipart/form-data">@csrf
                    @include('admin.panels._form')
                </form>
            </div>
        </div>
    </div>
@endsection
