forked from eatvio/eatvio-infra
51 lines
2.2 KiB
PHP
51 lines
2.2 KiB
PHP
<div>
|
|
@if($consultantRequests)
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">user id</th>
|
|
<th scope="col">medical edu</th>
|
|
<th scope="col">state</th>
|
|
<th scope="col">last update</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($consultantRequests as $consultantRequest)
|
|
<tr>
|
|
<th scope="row">
|
|
<a href="{{ route('consultant_request.show', $consultantRequest->user) }}">
|
|
{{ $consultantRequest->id }}
|
|
</a>
|
|
</th>
|
|
<td>{{ $consultantRequest->user->name }}</td>
|
|
<td>
|
|
<input
|
|
class="form-check-input"
|
|
type="checkbox"
|
|
value=""
|
|
id="flexCheckCheckedDisabled"
|
|
@checked($consultantRequest->has_medical_education)
|
|
disabled />
|
|
</td>
|
|
<td>
|
|
@if ($consultantRequest->request_state === 'created')
|
|
<span
|
|
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800 bg-info">
|
|
{{ $consultantRequest->request_state }}
|
|
</span>
|
|
@else
|
|
<span
|
|
class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4 bg-red-100 text-red-800">
|
|
{{ $consultantRequest->request_state }}
|
|
</span>
|
|
@endif
|
|
</td>
|
|
<td>{{ $consultantRequest->updated_at }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endif
|
|
</div>
|