41 lines
1.9 KiB
PHP
41 lines
1.9 KiB
PHP
<table class="table table-sm">
|
|
@foreach ($reports as $report)
|
|
<tr>
|
|
<td class="bg-gray-100">{{ $report->created_at }}</td>
|
|
<td>
|
|
<a target="_blank" href="{{ $report->viewUrl() }}">
|
|
{{ $report->report_status->name }}
|
|
<i class="fa-regular fa-square-arrow-up-right ms-1"></i>
|
|
</a>
|
|
</td>
|
|
<td>{{ $report->radiologist?->display_name }}</td>
|
|
<td class="align-content-end">
|
|
@if ($report->eligibleForExport())
|
|
<a class="btn btn-facebook btn-xs me-1 fs-xsmall fw-light" target="_blank"
|
|
href="{{ $report->wordDownloadUrl() }}">
|
|
<img class="me-1" src="{{ asset('imgs/docx.png') }}" alt="Word document download">doc
|
|
</a>
|
|
<a class="btn btn-dribbble btn-xs me-1 fs-xsmall fw-light" target="_blank"
|
|
href="{{ $report->pdfDownloadUrl() }}">
|
|
<img class="me-1" src="{{ asset('imgs/pdf.png') }}" alt="PDF document download">pdf
|
|
</a>
|
|
<a class="btn btn-reddit btn-xs me-1 fs-xsmall fw-light" target="_blank"
|
|
href="{{ $report->htmlDownloadUrl() }}">
|
|
<img class="me-1" src="{{ asset('imgs/html.png') }}" alt="HTML download">htm
|
|
</a>
|
|
@else
|
|
@if ($report->canEdit())
|
|
<a class="btn btn-dribbble btn-xs me-1 fs-xsmall fw-light" target="_blank"
|
|
href="{{ route('staff.report.edit', $report->accession_number) }}">
|
|
Edit
|
|
</a>
|
|
@endif
|
|
@if ($report->canRemove())
|
|
<!-- remove button -->
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|