@extends('layouts.master')

@section('content')
<div class="card">
    <div class="card-body card__head">
        <form method="POST" action="{{ route('marks_by_class') }}" class="row">
            @csrf

            <div class="form-group col-lg-3 col-md-4 col-sm-6">
                <input type="date" name="from_date" class="form-control">
            </div>

            <div class="form-group col-lg-3 col-md-4 col-sm-6">
                <input type="date" name="to_date" class="form-control">
            </div>

            <div class="form-group col-lg-3 col-md-4 col-sm-6">
                <button type="submit" class="btn btn-info">Search</button>
            </div>
        </form>
    </div>
</div>

<div class="card mt-4">
    <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="table-responsive" >
                <table class="table">
                    <thead class="thead-light">
                        <tr>
                            {{-- <th>ID</th> --}}
                            <th>SQL Log</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($permissionLog as $log)
                        <tr>
                            <td>{{ $log->sql_log }};</td>
                        </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
@stop

