36 lines
1.1 KiB
PHP
Executable File
36 lines
1.1 KiB
PHP
Executable File
@extends('layouts.app')
|
|
@section('content')
|
|
<div class="container py-3">
|
|
<div class="d-flex justify-content-between align-items-center mb-2">
|
|
<h1 class="h5">{{ $label }} <small class="text-muted">({{ $viewName }})</small></h1>
|
|
<a href="{{ route('gescon.import.index') }}" class="btn btn-sm btn-outline-secondary">⬅️ Torna</a>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="table-responsive">
|
|
<table class="table table-sm table-striped align-middle mb-0">
|
|
<thead>
|
|
<tr>
|
|
@foreach($columns as $c)
|
|
<th>{{ $c }}</th>
|
|
@endforeach
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($rows as $row)
|
|
<tr>
|
|
@foreach($columns as $c)
|
|
<td>{{ data_get($row, $c) }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="{{ count($columns) }}" class="text-center text-muted">Nessun dato</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="card-footer">{{ $rows->links() }}</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|