wip
This commit is contained in:
parent
56d92bc3a9
commit
394d3eea0a
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Models\Study;
|
||||
use Illuminate\Database\Eloquent\Builder as QueryBuilder;
|
||||
use Illuminate\Support\Str;
|
||||
use Yajra\DataTables\EloquentDataTable;
|
||||
use Yajra\DataTables\Html\Builder as HtmlBuilder;
|
||||
use Yajra\DataTables\Html\Button;
|
||||
@ -44,10 +45,25 @@ public function html(): HtmlBuilder
|
||||
->setTableId('worklist-table')
|
||||
->columns($this->getColumns())
|
||||
->minifiedAjax()
|
||||
->searchPanes(SearchPane::make())
|
||||
->layout(['dom' => 'PBfrtip'])
|
||||
->searchPanes(SearchPane::make(['show' => true, 'hideCount' => true]))
|
||||
->parameters(
|
||||
[
|
||||
// 'dom' => 'Pfrtip',
|
||||
// 'dom' => 'Bfrtip',
|
||||
'buttons' => [
|
||||
'searchPanes',
|
||||
'excel',
|
||||
'csv',
|
||||
'pdf',
|
||||
'print',
|
||||
'reset',
|
||||
'reload',
|
||||
],
|
||||
])
|
||||
->orderBy(1)
|
||||
->selectStyleSingle()
|
||||
->pageLength(25) // Set default page length to 10
|
||||
->lengthMenu([15, 25, 50, 100, 250]) // Custom page length options
|
||||
->buttons([
|
||||
Button::make('excel'),
|
||||
Button::make('csv'),
|
||||
@ -78,7 +94,10 @@ public function getColumns(): array
|
||||
Column::make('study_description'),
|
||||
Column::make('reporting_physician_id'),
|
||||
Column::make('body_part_examined'),
|
||||
Column::make('num_instances'),
|
||||
Column::make('num_instances')
|
||||
->searchable(false)
|
||||
->orderable(false)
|
||||
->addClass('text-center'),
|
||||
|
||||
// Column::make('xxx'),
|
||||
Column::computed('action')
|
||||
@ -95,6 +114,12 @@ public function getColumns(): array
|
||||
*/
|
||||
protected function filename(): string
|
||||
{
|
||||
return 'radsparc_worklist_'.date('YmdHis');
|
||||
$parts = [
|
||||
config('app.name'),
|
||||
'worklist',
|
||||
date('YmdHi'),
|
||||
];
|
||||
|
||||
return Str::slug(implode(' ', $parts), '_');
|
||||
}
|
||||
}
|
||||
|
@ -12,11 +12,6 @@ public function index(WorklistDataTable $dataTable)
|
||||
{
|
||||
return $dataTable->render('staff.worklist.table');
|
||||
}
|
||||
/* {
|
||||
$studies = WorklistFactory::getLister()->get();
|
||||
|
||||
return view('staff.worklist.index', compact('studies'));
|
||||
}*/
|
||||
|
||||
public function details($hashid)
|
||||
{
|
||||
|
@ -24,10 +24,10 @@ protected function casts(): array
|
||||
'study_status' => StudyLevelStatus::class,
|
||||
'report_status' => ReportStatus::class,
|
||||
'priority' => Priority::class,
|
||||
'received_at' => 'datetime',
|
||||
'reported_at' => 'datetime',
|
||||
'assigned_at' => 'datetime',
|
||||
'study_date' => 'datetime',
|
||||
'received_at' => 'immutable_datetime',
|
||||
'reported_at' => 'immutable_datetime',
|
||||
'assigned_at' => 'immutable_datetime',
|
||||
'study_date' => 'immutable_datetime',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -27,12 +27,5 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">Manage Users</div>
|
||||
<div class="card-body">
|
||||
{{ $dataTable->table() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ $dataTable->table() }}
|
||||
@endsection
|
||||
|
Loading…
Reference in New Issue
Block a user