@extends('layouts.TF')

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-lg-12 d-flex flex-column">
                <div class="row flex-grow">
                    <div class="col-12 grid-margin stretch-card">
                        <div class="card card-rounded">
                            <div class="card-body">
                                <div class="d-sm-flex justify-content-between align-items-start">
                                    <div>
                                        <h4 class="card-title card-title-dash">Data Laporan</h4>
                                        {{-- <button type="button" class="btn btn-sm btn-primary btn-rounded btn-fw">Kirim --}}
                                        {{-- Berkas</button> --}}
                                        {{-- <p class="card-subtitle card-subtitle-dash">Lorem ipsum dolor sit amet consectetur adipisicing elit
                  </p> --}}
                                    </div>
                                </div>
                                <div class="d-sm-flex align-items-center mt-1 justify-content-between">
                                </div>
                                @if (Session::has('pesan'))
                                    <div class="alert alert-info alert-dismissible">
                                        <a href="#" class="close" data-dismiss="alert">&times;</a>
                                        {{ Session::get('pesan') }}
                                    </div>
                                @endif
                                <table class="table table-light">
                                    <thead class="thead-light">
                                        <tr>
                                            <th>No</th>
                                            <th>Nama Dosen</th>
                                            <th>Status</th>
                                            <th>Aksi</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach ($objek as $row)
                                            <tr>
                                                <td>{{ $loop->iteration }}</td>
                                                <td>{{ $row->dosen->nama }}</td>
                                                
                                                <td>{{ $row->status }}</td>
                                                <td>
                                                    <a href="{{ url('admin/laporan/detail/'.$row->id, []) }}"
                                                        class="btn btn-primary btn-sm">Detail</a>
                                                    {{-- <a href="{{ url('admin/anggota/edit/'.$row->id, []) }}"
                                            class="btn btn-primary btn-sm">Edit</a>
                                            <a href="{{ url('admin/anggota/hapus/'.$row->id, []) }}"
                                                class="btn btn-primary btn-sm"
                                                onclick="return confirm('Anda yakin?')">Hapus</a> --}}
                                                </td>
                                            </tr>
                                        @endforeach
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
@endsection
