@extends('c3.layout')

@section('content')
<h4>Case Management Register</h4>
<a href="{{ route('c3.case-management.create') }}" class="btn btn-success mb-3">+ New Case Management Record</a>

<table class="table table-striped table-hover">
    <thead class="table-dark">
        <tr>
            <th>Incident ID</th><th>Survivor Code</th><th>Date of Report</th><th>GBV Type</th><th>Sex</th><th>Incident Location</th><th>Perpetrator Relationship</th>
        </tr>
    </thead>
    <tbody>
        @foreach($cases as $case)
        <tr>
            <td>{{ $case->incident_id }}</td>
            <td>{{ $case->survivor_code }}</td>
            <td>{{ $case->date_of_report }}</td>
            <td>{{ $case->gbv_type }}</td>
            <td>{{ $case->sex }}</td>
            <td>{{ $case->incident_location }}</td>
            <td>{{ $case->alleged_perpetrator_relationship }}</td>
        </tr>
        @endforeach
    </tbody>
</table>

{{ $cases->links() }}
@endsection