diff --git a/resources/views/livewire/show-logs.blade.php b/resources/views/livewire/show-logs.blade.php index f406a3d..7ae5027 100755 --- a/resources/views/livewire/show-logs.blade.php +++ b/resources/views/livewire/show-logs.blade.php @@ -1,9 +1,9 @@
| Id | +Id | Compra | Fecha Inicio | Fecha Final | @@ -16,37 +16,47 @@Credenciales | Estado | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$item->id}} | -{{\Carbon\Carbon::parse($item->created_at)->format('y/m/d h:i a')}} | -{{\Carbon\Carbon::parse($item->fecha_inicio)->format('d/m/Y') }} | -{{\Carbon\Carbon::parse($item->fecha_final)->format('d/m/Y') }} | -{{$item->valor}} | -{{$item->vendedor->name}} | -{{$item->vendedor->email}} | -{{$item->cliente->email}} | -@if(!empty($item->promocion_id)) {{$item->promocion->nombre}} @elseif(!empty($item->tarifa_id)) @if(empty($item->tarifa->servicio->por_tiempo)) {{$item->tarifa->pantallas}} P. de @endif {{$item->tarifa->servicio->nombre}} - {{$item->tarifa->dias}} d. @endif | -{{$item->nombre_cliente ?? $item->cliente->name}} | -
- @if(!empty($item->cuentas_obsoletas->unique()))
- @foreach($item->cuentas_obsoletas->unique() as $cuenta) {{$cuenta->correo}} - {{$cuenta->password}} @endforeach - @endif - @if(!empty($item->cuentas->unique())) - @foreach($item->cuentas->unique() as $cuenta1) {{$cuenta1->correo}} - {{$cuenta1->password}} @endforeach - @endif - |
- - {{$item->estado ?? ''}} - | - -
| {{ $item->id }} | +{{ \Carbon\Carbon::parse($item->created_at ?? now())->format('y/m/d h:i a') }} | +{{ \Carbon\Carbon::parse($item->fecha_inicio ?? now())->format('d/m/Y') }} | +{{ \Carbon\Carbon::parse($item->fecha_final ?? now())->format('d/m/Y') }} | +{{ $item->valor ?? '' }} | +{{ $item->vendedor->name ?? 'Sin nombre' }} | +{{ $item->vendedor->email ?? 'Sin correo' }} | +{{ $item->cliente->email ?? 'Sin correo' }} | ++ @if (!empty($item->promocion_id)) + {{ $item->promocion->nombre ?? 'Sin promoción' }} + @elseif(!empty($item->tarifa_id)) + @if (empty($item->tarifa->servicio->por_tiempo)) + {{ $item->tarifa->pantallas ?? 'N/A' }} P. de + @endif + {{ $item->tarifa->servicio->nombre ?? 'Sin nombre' }} - {{ $item->tarifa->dias ?? 'N/A' }} d. + @endif + | +{{ $item->nombre_cliente ?? $item->cliente->name ?? 'Sin nombre' }} | +
+ @if (!empty($item->cuentas_obsoletas->unique()))
+ @foreach ($item->cuentas_obsoletas->unique() as $cuenta)
+ {{ $cuenta->correo ?? 'Sin correo' }} - {{ $cuenta->password ?? 'Sin contraseña' }} + @endforeach + @endif + @if (!empty($item->cuentas->unique())) + @foreach ($item->cuentas->unique() as $cuenta1) + {{ $cuenta1->correo ?? 'Sin correo' }} - {{ $cuenta1->password ?? 'Sin contraseña' }} + @endforeach + @endif + |
+ + {{ $item->estado ?? 'Sin estado' }} + | +