@extends('layouts.admin') @section('title', 'Gestión de Reembolsos') @section('content')
| ID | Fecha Solicitud | Usuario | Transacción Original | Monto | Motivo | Estado | Prioridad | Tiempo Transcurrido | Acciones | |
|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $reembolso->id }} |
{{ $reembolso->created_at->format('d/m/Y') }}
{{ $reembolso->created_at->format('H:i') }}
|
@if($reembolso->usuario->avatar)
{{ substr($reembolso->usuario->nombre, 0, 1) }}
@endif
{{ $reembolso->usuario->nombre }}
{{ $reembolso->usuario->email }}
|
#{{ $reembolso->transaccion->id }}
{{ $reembolso->transaccion->concepto }} |
{{ format_currency($reembolso->monto, 2) }}
@if($reembolso->comision_retenida > 0)
Comisión: {{ format_currency($reembolso->comision_retenida, 2) }} @endif |
{{ ucfirst(str_replace('_', ' ', $reembolso->motivo)) }} | {{ ucfirst(str_replace('_', ' ', $reembolso->estado)) }} | {{ ucfirst($reembolso->prioridad) }} | @php $dias = $reembolso->created_at->diffInDays(now()); $colorTiempo = $dias > 7 ? 'danger' : ($dias > 3 ? 'warning' : 'success'); @endphp {{ $dias }} {{ $dias == 1 ? 'día' : 'días' }} |
@if($reembolso->estado === 'pendiente')
@elseif($reembolso->estado === 'en_proceso')
@endif
|