diff options
Diffstat (limited to 'resources/views/pages/callsigns.blade.php')
-rw-r--r-- | resources/views/pages/callsigns.blade.php | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/resources/views/pages/callsigns.blade.php b/resources/views/pages/callsigns.blade.php index 19dc984..b4814bb 100644 --- a/resources/views/pages/callsigns.blade.php +++ b/resources/views/pages/callsigns.blade.php @@ -5,9 +5,9 @@ @section('navbar', View::make('inc.special_navbar')) @section('content') - <h3>Callsigns Administration:</h3> @if (count($data) > 0) - <div class="p-0 mr-0 mt-3 col-lg-6 table-responsive"> + <h3>Callsigns Administration:</h3> + <div class="p-0 mt-3 col-lg-6 table-responsive"> <table class="table table-bordered"> @foreach ($data as $row) <tr> @@ -21,11 +21,19 @@ @endif <h3 class="mt-4">Add Callsign:</h3> + @if (session('status')) + <div class="alert alert-success"> + {{ session('status') }} + </div> + @endif <form action="{{ route('addSignForm') }}" method="POST"> @csrf <div class="form-group"> <label for="Sign">Special Callsign:</label> <input type="text" name="sign" value="" id="Sign" class="form-control"> + @error('sign') + <div class="alert alert-danger mt-2">{{ $message }}</div> + @enderror </div> <div class="form-group"> <label for="editor">Description:</label> @@ -40,13 +48,9 @@ @section('scripts') <script src="https://cdn.ckeditor.com/ckeditor5/23.1.0/classic/ckeditor.js"></script> <script> -ClassicEditor - .create( document.querySelector( '#editor' ) ) - .then( editor => { - console.log( editor ); - } ) - .catch( error => { +ClassicEditor.create(document.querySelector('#editor')) + .catch(error => { console.error( error ); - } ); + }); </script> @endsection |