@extends('layouts.main') @section('title', '| Reportes') @section('titlePage', 'Reportes') @section('content')
@include('report.menu')

{{ __('Reporte Prestamos') }}

@if ($message = Session::get('success'))

{{ $message }}

@endif
@foreach ($orders as $order) @foreach($order->prestamoDetail as $orderDetail) @if($orderDetail->stock_id) @else @endif @endforeach @endforeach
Orden Prestamo Cliente Fechas Cantidad Categoría del equipo Nombre Marca Clase Capacidad Estado
{{$order->id}} {{ $order?->customer?->name }} Prestamo: {{ $order?->fecha_prestado?->format('d-m-Y') }}
Devolución: {{ $order?->fecha_devolucion?->format('d-m-Y') }}
{{$orderDetail->cantidad ?? 1}} / {{$orderDetail?->stock?->cantidad}} {{$orderDetail?->stock?->categoria}} {{$orderDetail?->stock?->nombre}} {{$orderDetail?->stock?->brand?->name}} {{$orderDetail?->stock?->clase}} {{$orderDetail?->stock?->capacidad}} {{ $order->estado }}
Orden: {{$order->id}}
Detalle: {{$orderDetail->id}}
Orden Retiro: {{ $orderDetail?->orderDetail?->order?->id }}
Detalle Orden Retiro: {{ $orderDetail?->orderDetail?->id }}
Serie: {{ $orderDetail?->orderDetail?->serial_number }}
{{ $order?->customer?->name }} Prestamo: {{ $order?->fecha_prestado?->format('d-m-Y') }}
Devolución: {{ $order?->fecha_devolucion?->format('d-m-Y') }}
{{ $orderDetail->cantidad ?? 1 }} / {{ $orderDetail?->orderDetail?->quantity }} {{ $orderDetail?->orderDetail?->product?->category?->name }} {{ $orderDetail?->orderDetail?->product->name }} {{ $orderDetail?->orderDetail?->product?->brand?->name}} {{ $orderDetail?->orderDetail?->product?->classe?->name }} {{ $orderDetail?->orderDetail?->product?->capacity }} {{ $order->estado }}
{!! $orders->links('pagination::bootstrap-5') !!}
@endsection