@extends('layouts.Layout')

@section('content')
        <div class="col-md-12">
            <div class="card">
                <div class="header">
                    <h4>{{$title}}</h4>
                </div>
                    <div class="content table-responsive table-full-width" id="table">
                    <table class="table table-borderless">
                        <tr>
                            <th>No Pendaftar</th>
                            <th>Nama</th>
                            <th>Asal Sekolah</th>
                            <th>Status</th>
                            <th></th>
                        </tr>
                        <tr>
                            @foreach($pendaftar as $pen)
                                <td>{{$pen->no_pendaftar}}</td>
                                <td>{{$pen->nama}}</td>
                                @foreach($asalsekolah as $as)
                                <td>{{$as->nama_sekolah}}</td>
                                @endforeach
                                <td>{{$pen->status}}</td>
                            @endforeach
                        </tr>
                    </table>
                </div>
            </div>
        </div>
@endsection