@extends('layouts.app') @section('titulo', 'Apartados y Encargos') @section('content')
+ Nuevo encargo
@forelse ($apartados as $a) @php $col=['pendiente'=>'bg-amber-100 text-amber-700','disponible'=>'bg-blue-100 text-blue-700','entregado'=>'bg-emerald-100 text-emerald-700','cancelado'=>'bg-red-100 text-red-700']; @endphp @empty @endforelse
NumeroClienteFechaPrevistaTotalPendienteEstado
{{ $a->numero }} {{ $a->cliente->nombre_completo ?? '-' }} {{ $a->fecha->format('d/m/Y') }} {{ optional($a->fecha_prevista)->format('d/m/Y') ?? '-' }} {{ formato_moneda($a->total) }} {{ formato_moneda($a->pendiente) }} {{ ucfirst($a->estado) }}
No hay encargos registrados.
{{ $apartados->links() }}
@endsection