misc
This commit is contained in:
parent
70a376634e
commit
34b0d1f84f
@ -21,6 +21,7 @@ protected function handle(): string
|
||||
Pdf::loadView('staff.reports.viewer.html-report', $data)
|
||||
->setPaper('a4', 'landscape')
|
||||
->setWarnings(false)
|
||||
->setOption('defaultFont', 'Courier')
|
||||
->save(ReportStorage::abspath($filepath));
|
||||
|
||||
return $filepath;
|
||||
|
@ -6,6 +6,7 @@
|
||||
use App\Services\Export\ExportDocumentBase;
|
||||
use App\Services\ReportStorage;
|
||||
use CreateDocx;
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
|
||||
final class Word2007Export extends ExportDocumentBase
|
||||
{
|
||||
@ -17,7 +18,8 @@ protected function handle(): string
|
||||
return $filepath;
|
||||
}
|
||||
|
||||
$html = $this->report->getContent();
|
||||
$title = 'View Report';
|
||||
$html = Blade::render('staff.reports.viewer.html-report', ['report' => $this->report, 'title' => $title]);
|
||||
$docx = new CreateDocx;
|
||||
$docx->embedHTML($html);
|
||||
$docx->createDocx(ReportStorage::abspath($filepath));
|
||||
|
@ -1,17 +1,33 @@
|
||||
<table class="table table-sm">
|
||||
@foreach ($reports as $report)
|
||||
<tr>
|
||||
<td>{{ $report->created_at }}</td>
|
||||
<td>{{ $report->report_status->name }}</td>
|
||||
<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?->name }}</td>
|
||||
<td><a class="btn btn-primary btn-xs" target="_blank" href="{{ $report->viewUrl() }}">VW</a></td>
|
||||
<td><a class="btn btn-info btn-xs" target="_blank" href="{{ $report->wordDownloadUrl() }}">doc</a></td>
|
||||
<td><a class="btn btn-danger btn-xs" target="_blank" href="{{ $report->pdfDownloadUrl() }}">pdf</a></td>
|
||||
<td><a class="btn btn-warning btn-xs" target="_blank" href="{{ $report->htmlDownloadUrl() }}">htm</a></td>
|
||||
<td class="align-content-end">
|
||||
<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="DOCX 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 download">pdf
|
||||
</a>
|
||||
<a class="btn btn-reddit btn-xs me-1 fs-xsmall fw-ligth" target="_blank"
|
||||
href="{{ $report->htmlDownloadUrl() }}">
|
||||
<img class="me-1" src="{{ asset('imgs/html.png') }}" alt="HTML download">htm
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<a class="btn btn-secondary btn-xs" href="{{ route('staff.report.create', $study->hash) }}">
|
||||
Create
|
||||
</a>
|
||||
</table>
|
||||
|
||||
<a class="btn btn-secondary btn-xs" href="{{ route('staff.report.create', $study->hash) }}">
|
||||
Create
|
||||
</a>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user