@extends('layouts.master')
@section('content')
<div class="card mt-4">
    {{--<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
        <h6 class="m-0 table__top__txt">Branch List</h6>
        <div class="m-0 float-right">
            @can('academic.branches.create')
            <button class="btn btn-sm btn-primary" id="add-student-btn" 
            data-toggle="modal" data-target="#dataStoreModal">Add New</button>
            @endcan
        </div>
    </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>Class</th>
                            <th class="action__col">Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach ($studentClasses as $class)
                            <tr>
                                <td>{{ $class->id }}</td>
                                <td>{{ $class->class_name ?? '' }}</td>
                                <td class="d-flex justify-content-start">
                                    @if (!$class->classTimePeriods->isEmpty())
                                        @can('academic.class-routine.view')
                                            <a href="{{ route('class_time_periods.show', $class->id) }}"
                                                class="btn btn-soft-success btn-sm"><i class="fas fa-eye"></i></a>
                                        @endcan
                                        @can('academic.class-routine.edit')
                                            <a href="{{ route('class_time_periods.edit', $class->id) }}"
                                                class="btn btn-soft-info btn-sm"><i class="fas fa-edit"></i></a>
                                        @endcan
                                        @can('academic.class-routine.delete')
                                            <form action="{{ route('class_time_periods.destroy', $class->id) }}" method="POST"
                                                class="d-inline">
                                                @csrf
                                                @method('DELETE')
                                                <button type="submit" class="btn btn-soft-danger btn-sm"
                                                    onclick="return confirm('Are you sure you want to delete this class time period?')"><i class="fas fa-trash"></i></button>
                                            </form>
                                        @endcan
                                    @else
                                        <a class="btn btn-sm btn-primary"
                                            href="{{ route('class_time_periods.edit', $class->id) }}">Create New Routine</a>
                                    @endif

                                </td>
                            </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>--}}
        <h3 class="p-3">Under Construction</h3>
</div>
@endsection
