Lavorazioni su Automobili (inserimento e visualizzazione
This commit is contained in:
61
resources/views/auto/list.blade.php
Normal file
61
resources/views/auto/list.blade.php
Normal file
@@ -0,0 +1,61 @@
|
||||
@extends('admin')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header">Lista Automobili</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<!-- Content here -->
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Lista delle automobili
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover" id="automobili">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Marca</th>
|
||||
<th>Modello</th>
|
||||
<th>Targa</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($automobili ?? '' as $automobile)
|
||||
<tr>
|
||||
<td><a href="auto/detail?id={{ $automobile->id }}">{{ $automobile->marca; }}</a></td>
|
||||
<td>{{ $automobile->modello; }}</td>
|
||||
<td>{{ $automobile->targa; }}</td>
|
||||
<td>
|
||||
<a class="btn btn-primary" href="/auto/modify?id={{ $automobile->id; }}"><i class="fa fa-pencil-square-o fw"></i></a>
|
||||
<a class="btn btn-danger" href="/auto/delete?id={{ $automobile->id; }}"><i class="fa fa-trash-o fa-fw"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- /.col-lg-12 -->
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#automobili').DataTable({
|
||||
responsive: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user