156 lines
8.3 KiB
PHP
156 lines
8.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{ $articolo->codice_articolo }} - HTT Locator</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<style>
|
|
.gradient-bg {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-gray-100 min-h-screen">
|
|
<!-- Header -->
|
|
<header class="gradient-bg text-white py-4 px-4 shadow-lg">
|
|
<div class="max-w-lg mx-auto">
|
|
<h1 class="text-xl font-bold text-center">HTT Locator</h1>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Main Content -->
|
|
<main class="max-w-lg mx-auto px-4 py-6">
|
|
<!-- Codice Articolo Card -->
|
|
<div class="bg-white rounded-2xl shadow-lg overflow-hidden mb-6">
|
|
<div class="gradient-bg text-white p-6">
|
|
<p class="text-sm opacity-80 mb-1">Codice Articolo</p>
|
|
<h2 class="text-2xl font-bold">{{ $articolo->codice_articolo }}</h2>
|
|
</div>
|
|
@if($articolo->descrizione)
|
|
<div class="p-4 border-b">
|
|
<p class="text-gray-600 text-sm">{{ $articolo->descrizione }}</p>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<!-- Ubicazione -->
|
|
<div class="bg-white rounded-2xl shadow-lg overflow-hidden mb-6">
|
|
<div class="px-4 py-3 bg-gray-50 border-b">
|
|
<h3 class="font-semibold text-gray-700 flex items-center">
|
|
<svg class="w-5 h-5 mr-2 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
|
|
</svg>
|
|
Ubicazione
|
|
</h3>
|
|
</div>
|
|
<div class="divide-y">
|
|
@if($articolo->ciclo)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Ciclo</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->ciclo }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->diametro)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Diametro</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->diametro }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->posizione)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Posizione</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->posizione }}</span>
|
|
</div>
|
|
@endif
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Quantita</span>
|
|
<span class="font-medium text-gray-900 bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm">
|
|
{{ $articolo->quantita }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Parametri Tecnologici -->
|
|
<div class="bg-white rounded-2xl shadow-lg overflow-hidden mb-6">
|
|
<div class="px-4 py-3 bg-gray-50 border-b">
|
|
<h3 class="font-semibold text-gray-700 flex items-center">
|
|
<svg class="w-5 h-5 mr-2 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
|
|
</svg>
|
|
Parametri Tecnologici
|
|
</h3>
|
|
</div>
|
|
<div class="divide-y">
|
|
@if($articolo->tipo_lavorazione)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Tipo Lavorazione</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->tipo_lavorazione }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->materiale_lavorare)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Materiale</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->materiale_lavorare }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->maximum_thickness)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Max Thickness</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->maximum_thickness }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->speed_rpm)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Speed (RPM)</span>
|
|
<span class="font-medium text-gray-900">{{ number_format($articolo->speed_rpm) }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->feed)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Feed</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->feed }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->max_thrust_a)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Max Thrust (A)</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->max_thrust_a }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->min_torque_a)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Min Torque (A)</span>
|
|
<span class="font-medium text-gray-900">{{ $articolo->min_torque_a }}</span>
|
|
</div>
|
|
@endif
|
|
@if($articolo->quantita_fori)
|
|
<div class="flex justify-between items-center px-4 py-3">
|
|
<span class="text-gray-500 text-sm">Quantita Fori</span>
|
|
<span class="font-medium text-gray-900">{{ number_format($articolo->quantita_fori) }}</span>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Scan New QR Button -->
|
|
<div class="mb-6">
|
|
<a href="{{ route('scanner') }}" class="flex items-center justify-center gap-3 w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-4 px-6 rounded-2xl shadow-lg transition-all">
|
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"></path>
|
|
</svg>
|
|
Scansiona Nuovo QR
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Footer Info -->
|
|
<div class="text-center text-gray-400 text-xs">
|
|
<p>Ultimo aggiornamento: {{ $articolo->updated_at->format('d/m/Y H:i') }}</p>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|