87 lines
3.3 KiB
PHP
87 lines
3.3 KiB
PHP
<x-app-layout>
|
|
<x-slot name="header">
|
|
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
|
|
{{ __('Modifica Stabile') }}
|
|
</h2>
|
|
</x-slot>
|
|
|
|
@extends('admin.layouts.netgescon')
|
|
|
|
@section('title', 'Modifica Stabile')
|
|
@section('page-title', 'Modifica Stabile')
|
|
|
|
@section('breadcrumb')
|
|
<li class="text-gray-600">
|
|
<a href="{{ route('admin.stabili.index') }}" class="hover:text-blue-600">
|
|
<i class="fas fa-building mr-2"></i>
|
|
Stabili
|
|
</a>
|
|
</li>
|
|
<li class="text-gray-600">
|
|
<i class="fas fa-chevron-right mx-2"></i>
|
|
<a href="{{ route('admin.stabili.show', $stabile) }}" class="hover:text-blue-600">
|
|
{{ Str::limit($stabile->denominazione, 30) }}
|
|
</a>
|
|
</li>
|
|
<li class="text-gray-600">
|
|
<i class="fas fa-chevron-right mx-2"></i>
|
|
Modifica
|
|
</li>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="space-y-6">
|
|
<!-- Header -->
|
|
<div class="flex justify-between items-center">
|
|
<div>
|
|
<h1 class="text-2xl font-bold text-gray-900">Modifica Stabile</h1>
|
|
<p class="text-gray-600 mt-1">{{ $stabile->denominazione }}</p>
|
|
</div>
|
|
<div class="flex space-x-3">
|
|
<a href="{{ route('admin.stabili.show', $stabile) }}"
|
|
class="bg-gray-100 hover:bg-gray-200 text-gray-700 px-4 py-2 rounded-lg border flex items-center space-x-2 transition-colors">
|
|
<i class="fas fa-eye"></i>
|
|
<span>Visualizza</span>
|
|
</a>
|
|
<a href="{{ route('admin.stabili.index') }}"
|
|
class="bg-gray-100 hover:bg-gray-200 text-gray-700 px-4 py-2 rounded-lg border flex items-center space-x-2 transition-colors">
|
|
<i class="fas fa-arrow-left"></i>
|
|
<span>Torna alla Lista</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Form -->
|
|
<div class="bg-white rounded-lg shadow-sm border">
|
|
<form method="POST" action="{{ route('admin.stabili.update', $stabile) }}" class="space-y-6">
|
|
@csrf
|
|
@method('PUT')
|
|
|
|
<!-- Usa lo stesso form della creazione ma con i dati popolati -->
|
|
@include('admin.stabili._form', ['stabile' => $stabile])
|
|
|
|
<div class="flex items-center justify-end space-x-4 mt-6">
|
|
<x-secondary-button type="button" onclick="window.location='{{ route('admin.stabili.index') }}'">
|
|
{{ __('Annulla') }}
|
|
</x-secondary-button>
|
|
<x-primary-button>
|
|
{{ __('Aggiorna Stabile') }}
|
|
</x-primary-button>
|
|
</div>
|
|
</form>
|
|
|
|
@if ($errors->any())
|
|
<div class="mt-4 text-red-600 dark:text-red-400">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout> |