99 lines
2.8 KiB
PHP
99 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
class TabellaMillesimaleController extends Controller
|
|
{
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function index()
|
|
{
|
|
return view('admin.tabelle-millesimali.index', [
|
|
'title' => 'Tabelle Millesimali',
|
|
'breadcrumb' => [
|
|
'Dashboard' => route('admin.dashboard'),
|
|
'Tabelle Millesimali' => ''
|
|
]
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Show the form for creating a new resource.
|
|
*/
|
|
public function create()
|
|
{
|
|
return view('admin.tabelle-millesimali.create', [
|
|
'title' => 'Nuova Tabella Millesimale',
|
|
'breadcrumb' => [
|
|
'Dashboard' => route('admin.dashboard'),
|
|
'Tabelle Millesimali' => route('admin.tabelle-millesimali.index'),
|
|
'Nuova Tabella' => ''
|
|
]
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Store a newly created resource in storage.
|
|
*/
|
|
public function store(Request $request)
|
|
{
|
|
// TODO: Implement store logic
|
|
return redirect()->route('admin.tabelle-millesimali.index')
|
|
->with('success', 'Tabella millesimale creata con successo.');
|
|
}
|
|
|
|
/**
|
|
* Display the specified resource.
|
|
*/
|
|
public function show(string $id)
|
|
{
|
|
return view('admin.tabelle-millesimali.show', [
|
|
'title' => 'Dettaglio Tabella Millesimale',
|
|
'breadcrumb' => [
|
|
'Dashboard' => route('admin.dashboard'),
|
|
'Tabelle Millesimali' => route('admin.tabelle-millesimali.index'),
|
|
'Dettaglio' => ''
|
|
]
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Show the form for editing the specified resource.
|
|
*/
|
|
public function edit(string $id)
|
|
{
|
|
return view('admin.tabelle-millesimali.edit', [
|
|
'title' => 'Modifica Tabella Millesimale',
|
|
'breadcrumb' => [
|
|
'Dashboard' => route('admin.dashboard'),
|
|
'Tabelle Millesimali' => route('admin.tabelle-millesimali.index'),
|
|
'Modifica' => ''
|
|
]
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Update the specified resource in storage.
|
|
*/
|
|
public function update(Request $request, string $id)
|
|
{
|
|
// TODO: Implement update logic
|
|
return redirect()->route('admin.tabelle-millesimali.index')
|
|
->with('success', 'Tabella millesimale aggiornata con successo.');
|
|
}
|
|
|
|
/**
|
|
* Remove the specified resource from storage.
|
|
*/
|
|
public function destroy(string $id)
|
|
{
|
|
// TODO: Implement destroy logic
|
|
return redirect()->route('admin.tabelle-millesimali.index')
|
|
->with('success', 'Tabella millesimale eliminata con successo.');
|
|
}
|
|
}
|