@extends('layouts.app') @section('titulo', 'Parte #' . $parte->id) @section('boton')
Lugar: {{ $parte->lugar->nombre }}
Dirección: {{ $parte->direccion }}
Población: {{ $parte->poblacion }}
Empresa (parte): {{ $parte->empresa->nombre_comercial }}
@endif @if($parte->obra)Obra: {{ $parte->obra->nombre }}
@endif @if($parte->fecha)Fecha del parte: {{ $parte->fecha->format('d/m/Y') }}
@endifCreado por: {{ $parte->creadoPor->nombre }}
Fecha de creación: {{ $parte->created_at->format('d/m/Y H:i') }}
@if($parte->verificadoPor)Verificado por: {{ $parte->verificadoPor->nombre }}
Fecha de verificación: {{ $parte->fecha_verificacion->format('d/m/Y H:i') }}
@endifFirmante: {{ $parte->firma->firmante?->nombre ?? '—' }}
@if($parte->firma->firmado_por)Firmado por: {{ $parte->firma->firmado_por }}
@endif @if($parte->firma->cargo)Cargo: {{ $parte->firma->cargo }}
@endifFecha firma: {{ $parte->firma->firmado_en?->format('d/m/Y H:i') }}
{{ $parte->observaciones }}
| Trabajador | Fecha | Horario | Lugar | Descripción | Estado | Materiales |
|---|---|---|---|---|---|---|
|
|
{{ $registro->fecha->format('d/m/Y') }} |
{{ $registro->etiquetaHorarioResumen() }}
{{ number_format($registro->horas_laborales, 2, ',', '') }} h |
{{ $registro->lugar->nombre }} | {{ $registro->descripcion_trabajo }} | @switch($registro->estado) @case('pendiente') Pendiente @break @case('en_parte') En Parte @break @case('verificado') Verificado @break @default {{ ucfirst($registro->estado) }} @endswitch | @if($registro->materiales->isNotEmpty()) {{ $registro->materiales->count() }} materiales @else Sin materiales @endif |
No hay registros de trabajo en este parte
| Material | Cantidad | Observaciones |
|---|---|---|
| {{ $material->material->nombre }} | {{ $material->cantidad }} | {{ $material->observaciones ?? 'Sin observaciones' }} |