{{-- TOP HEADER CONTEXT TOOLBAR --}}
LO

Lavorazioni Operative & Centro Assistenza

Unificato
@if($this->fornitoreLabel) Fornitore operativo: {{ $this->fornitoreLabel }} @else Seleziona un fornitore per visualizzare le lavorazioni operative. @endif
@if(count($this->fornitoriOptions) > 1)
Fornitore:
@endif ๐Ÿ’ป Pratiche TecnoRepair ๐Ÿ” Ricerca Seriali ๐ŸŽซ Ticket operativi ๐Ÿ‘ฅ Collaboratori ๐Ÿ“– Rubrica clienti ๐Ÿ“ฆ Prodotti & Ricambi
{{-- MAIN VIEW TABS: ELENCO LAVORAZIONI vs SCHEDA APPARECCHIO --}}
@if($selectedRowId && $activeScheda) @endif
@if($mainTab === 'scheda')
@endif
@if($this->missingAdminContext)
Questa vista per amministratori richiede un fornitore selezionato.
@else {{-- TAB 1: ELENCO LAVORAZIONI --}} @if($mainTab === 'elenco') {{-- KPI SUMMARY CARDS --}}
{{-- FILTRI PER RICERCA ELENCO --}}
๐Ÿ” Filtra Lavorazioni Operative Filtri rapidi reattivi
{{-- TABELLA ELENCO LAVORAZIONI --}}
Lavorazioni Elencate: {{ count($rows) }} (filtrate su base reattiva)
Riparato Irreparabile / Ricambi Accettazione / In Rip. Attesa Ricambio
@forelse($rows as $row) @php $rowBg = match($row['row_color'] ?? '') { 'green' => 'bg-emerald-50/80 hover:bg-emerald-100/90 text-emerald-950 font-medium', 'red' => 'bg-rose-50/80 hover:bg-rose-100/90 text-rose-950 font-medium', 'blue' => 'bg-sky-50/80 hover:bg-sky-100/90 text-sky-950', 'amber' => 'bg-amber-50/80 hover:bg-amber-100/90 text-amber-950', default => 'hover:bg-slate-50 text-slate-800', }; $borderLeft = match($row['row_color'] ?? '') { 'green' => 'border-l-4 border-l-emerald-600', 'red' => 'border-l-4 border-l-rose-600', 'blue' => 'border-l-4 border-l-sky-600', 'amber' => 'border-l-4 border-l-amber-600', default => 'border-l-4 border-l-transparent', }; @endphp @empty @endforelse
Num. Ingresso Cliente / Contatto Telefono Problema / Difetto Marca Modello Seriale / IMEI Origine Operatore Stato Aggiornato Azione
{{ $row['numero'] ?? ($row['ticket_id'] ? ('#' . $row['ticket_id']) : '-') }}
{{ ($row['row_type'] ?? '') === 'tecnorepair' ? 'TR' : 'TK' }}
{{ $row['ingresso'] }}
{{ $row['stabile'] }}
{{ $row['cliente'] ?? $row['contatto'] }} {{ $row['telefono'] !== '' ? $row['telefono'] : '-' }}
{{ $row['difetto'] ?? $row['problema'] }}
@if(($row['titolo'] ?? '') !== '' && $row['titolo'] !== '-')
{{ $row['titolo'] }}
@endif
{{ $row['brand'] ?? '-' }} {{ $row['modello'] ?? $row['apparato'] }} {{ $row['seriale'] ?? '-' }} {{ $row['origine'] }} {{ $row['operatore'] }} {{ $row['stato'] }} {{ $row['updated_at'] }}
Nessuna lavorazione trovata con i filtri correnti. Prova a cliccare "Reset Filtri".
@endif {{-- TAB 2: SCHEDA APPARECCHIO / DETTAGLIO INTERVENTO (IN-PAGE FULL TAB) --}} @if($mainTab === 'scheda' && $activeScheda) @if(($activeScheda['type'] ?? '') === 'tecnorepair') {{-- TECNOREPAIR DESKTOP-FAITHFUL SCHEDA --}}
{{-- SCHEDA TOP BAR: WINDOW BANNER & STATUS --}}
SCHEDA APPARECCHIO #{{ $activeScheda['numero_scheda'] }}

{{ $activeScheda['brand'] }} {{ $activeScheda['product_model'] }} ({{ $activeScheda['serial_number'] }})

Cliente: {{ $activeScheda['customer_name'] }} โ€” Data Ingresso: {{ $activeScheda['date_received'] }} ore {{ $activeScheda['time_received'] }}

Stato: {{ $activeScheda['status'] }}
{{-- CONTROLLI INTESTAZIONE SCHEDA & BOX CLIENTE (FEDELE A TECNOREPAIR DESKTOP) --}}
{{-- LEFT: DATE & GESTIONE INTERVENTO --}}
{{-- CHECKBOXES ROW (FLAGS TECNOREPAIR DESKTOP) --}}
{{-- RIGHT: BOX "DATI CLIENTE" (POSIZIONATO ESATTAMENTE COME SUL DESKTOP) --}}
๐Ÿ‘ค Dati Cliente
@if($activeScheda['customer_phone']) @endif
Nome / Ragione Sociale:
Cellulare:
Fisso:
Indirizzo & Cittร :
{{-- SUB-TABS BAR (7 TABS TECNOREPAIR DESKTOP) --}}
@php $subTabs = [ 'entrata' => '1. Apparecchio in Entrata', 'riparazione' => '2. Riparazione & Flussi โšก', 'ricambi' => '3. Ricambi Utilizzati', 'preventivo' => '4. Preventivo - Costi - DDT', 'annotazioni' => '5. Annotazioni & Cortesia', 'comunicazioni' => '6. Comunicazioni', 'cq' => '7. Controllo Qualitร  (C.Q.)', ]; @endphp @foreach($subTabs as $tabKey => $tabLabel) @endforeach
{{-- SUB-TAB CONTENTS --}}
{{-- SUB-TAB 1: APPARECCHIO IN ENTRATA --}} @if($schedaSubTab === 'entrata')
{{-- LEFT COLUMN: DEVICE SPECS & IDENTIFIERS --}}
๐Ÿ’ป Specifiche Apparecchio Identificatori univoci
{{-- RIGHT COLUMN: DEFECTS, NOTES & UNLOCK PATTERN MATRIX --}}
{{-- PIN & UNLOCK CODE --}}
๐Ÿ” Codici di Sblocco
{{-- PATTERN UNLOCK 3x3 MATRIX (ANDROID PATTERN GRID) --}}
๐Ÿ“ฑ Matrice Sblocco (3x3)
@for($dot = 0; $dot < 9; $dot++) @php $isActive = ($unlockPattern[$dot] ?? 0) === 1; @endphp @endfor
Fai clic sui pallini per comporre il segno
@endif {{-- SUB-TAB 2: RIPARAZIONE & FLUSSI AUTOMATIZZATI --}} @if($schedaSubTab === 'riparazione')
{{-- FLUSSI RAPIDI DI LAVORAZIONE --}}
โšก AZIONI RAPIDE DI STATO & LAVORAZIONE
{{-- 1. RIPARATO --}} {{-- 2. IN RIPARAZIONE --}} {{-- 3. ATTESA RICAMBIO --}} {{-- 4. ROTTAMAZIONE / RICAMBI --}}
{{-- DESCRIZIONE RIPARAZIONE / RAPPORTO TECNICO --}}
๐Ÿ› ๏ธ Descrizione Riparazione & Intervento Eseguito
@endif {{-- SUB-TAB 3: RICAMBI UTILIZZATI --}} @if($schedaSubTab === 'ricambi')
๐Ÿ“ฆ Ricambi & Componenti Collegati alla Scheda
+ Consulta Catalogo Ricambi
Per questa scheda non risultano codici ricambio scaricati dall'archivio legacy. I seriali impiegati possono essere ricercati tramite la sezione Ricerca Seriali.
@endif {{-- SUB-TAB 4: PREVENTIVO - COSTI - DDT --}} @if($schedaSubTab === 'preventivo')
๐Ÿ’ถ Riepilogo Economico Intervento
๐Ÿ“„ Riferimenti Documenti di Trasporto (DDT)
@endif {{-- SUB-TAB 5: ANNOTAZIONI & CORTESIA --}} @if($schedaSubTab === 'annotazioni')
๐Ÿ“ฑ Apparecchio Sostitutivo di Cortesia
@endif {{-- SUB-TAB 6: COMUNICAZIONI --}} @if($schedaSubTab === 'comunicazioni')
๐Ÿ’ฌ Storico Comunicazioni & Avvisi al Cliente
@endif {{-- SUB-TAB 7: CONTROLLO QUALITร€ (C.Q.) --}} @if($schedaSubTab === 'cq')
โœ… Checklist Controllo Qualitร  & Collaudo Finale (C.Q.)
โœ“ Accensione & Boot Sistema OK
โœ“ Display & Touchscreen Reattivi
โœ“ Audio Capsula & Speaker OK
โœ“ Ricarica Batteria & Alimentazione
โœ“ Connettivitร  Wi-Fi / BT / Rete
โœ“ Pulizia & Sigillo Laboratorio
@endif
{{-- BOTTOM ACTION TOOLBAR --}}
@else {{-- TICKET AMMINISTRATORE SCHEDA IN-PAGE VIEW --}}
{{ $activeScheda['numero_scheda'] }}

{{ $activeScheda['title'] }}

Stabile: {{ $activeScheda['stabile'] }} โ€” Richiedente: {{ $activeScheda['customer_name'] }}

Stato: {{ $activeScheda['status'] }} @if(($activeScheda['url'] ?? '') !== '') Apri Gestione Ticket โ†— @endif
๐Ÿข Dati Stabile & Contatto
{{ $activeScheda['stabile'] }}
Unitร : {{ $activeScheda['unita'] ?? '-' }}
Richiedente: {{ $activeScheda['customer_name'] }}
Telefono: {{ $activeScheda['customer_phone'] ?: '-' }}
Indirizzo: {{ $activeScheda['customer_address'] }}, {{ $activeScheda['customer_city'] }}
๐Ÿ“‹ Stato Intervento
Operatore Assegnato: {{ $activeScheda['operator'] }}
โš ๏ธ Problema Segnalato nel Ticket

{{ $activeScheda['defect_reported'] }}

๐Ÿ› ๏ธ Rapporto Intervento Fornitore
@endif @endif @endif