From 26bdfee839f4b8fb18beb1a9770fc758ad20c267 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 16 Nov 2020 20:15:43 +0100 Subject: AJAX filtering reservations on admin panel... --- resources/views/pages/reservations.blade.php | 106 ++++++++++++++++++--------- 1 file changed, 72 insertions(+), 34 deletions(-) (limited to 'resources') diff --git a/resources/views/pages/reservations.blade.php b/resources/views/pages/reservations.blade.php index 66b4d7e..06c0335 100644 --- a/resources/views/pages/reservations.blade.php +++ b/resources/views/pages/reservations.blade.php @@ -4,10 +4,24 @@ @section('navbar', View::make('inc.navbar')) +@section('scripts') + +@endsection + @section('content') -@if (count($data) > 0) -
- + + + + +
+
@@ -16,47 +30,71 @@ + - - @foreach ($data as $row) - - - @if ($row->approved) - - @else - - @endif - - - - - - - - - - - - - @endforeach
IDQSO From ToSpecial Callsign Frequencies ModesSpecial Callsign Operator Name Operator Email Operator Phone Actions
{{ $row->id }}{{ $row->operatorCall }}{{ $row->qso }}{{ $row->fromTime }}{{ $row->toTime }}{{ $row->frequencies }}{{ $row->modes }}{{ $row->specialCall }}{{ $row->operatorName }}{{ $row->operatorEmail }}{{ $row->operatorPhone }} - - - -
-@else -
- There are currently no reservations. -
-@endif +{{--@if (count($data) > 0)--}} +{{--
--}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{--@foreach ($data as $row)--}} + {{----}} + {{----}} + {{--@if ($row->approved)--}} + {{-- --}} + {{--@else--}} + {{-- --}} + {{--@endif--}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{----}} + {{--@endforeach--}} + {{----}} + {{--
IDApprovedOperator CallsignQSOFromToFrequenciesModesSpecial CallsignOperator NameOperator EmailOperator PhoneActions
{{ $row->id }}{{ $row->operatorCall }}{{ $row->qso }}{{ $row->fromTime }}{{ $row->toTime }}{{ $row->frequencies }}{{ $row->modes }}{{ $row->specialCall }}{{ $row->operatorName }}{{ $row->operatorEmail }}{{ $row->operatorPhone }}--}} + {{----}} + {{----}} + {{----}} + {{--
--}} +{{--
--}} +{{--@else--}} +{{--
--}} + {{--There are currently no reservations.--}} +{{--
--}} +{{--@endif--}} @endsection() -- cgit v1.2.3