53 lines
2.2 KiB
PHP
53 lines
2.2 KiB
PHP
<div class=" text-center">
|
|
<input type="text" placeholder="Buscar" wire:model="buscar" class="mx-auto text-center rounded my-4">
|
|
|
|
<table class="text-center w-full mx-8">
|
|
<tr class="border text-left">
|
|
<th>Id</th>
|
|
<th>Compra</th>
|
|
<th>Fecha Inicio</th>
|
|
<th>Fecha Final</th>
|
|
<th>Valor</th>
|
|
<th>Vendedor</th>
|
|
<th>Correo</th>
|
|
<th>Cliente</th>
|
|
<th>Servicio</th>
|
|
<th>cliente</th>
|
|
<th>Credenciales</th>
|
|
<th>Estado</th>
|
|
</tr>
|
|
@foreach($logs as $item)
|
|
|
|
<tr class="border hover:bg-gray-200 hover:ring-gray-500 text-left text-sm" >
|
|
<td>{{$item->id}}</td>
|
|
<td>{{\Carbon\Carbon::parse($item->created_at)->format('y/m/d h:i a')}}</td>
|
|
<td>{{\Carbon\Carbon::parse($item->fecha_inicio)->format('d/m/Y') }}</td>
|
|
<td>{{\Carbon\Carbon::parse($item->fecha_final)->format('d/m/Y') }}</td>
|
|
<td>{{$item->valor}}</td>
|
|
<td>{{$item->vendedor->name}}</td>
|
|
<td>{{$item->vendedor->email}}</td>
|
|
<td>{{$item->cliente->email}}</td>
|
|
<td>@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 </td>
|
|
<td>{{$item->nombre_cliente ?? $item->cliente->name}}</td>
|
|
<td class="text-left">
|
|
@if(!empty($item->cuentas_obsoletas->unique()))
|
|
@foreach($item->cuentas_obsoletas->unique() as $cuenta) {{$cuenta->correo}} - {{$cuenta->password}} <br> @endforeach
|
|
@endif
|
|
@if(!empty($item->cuentas->unique()))
|
|
@foreach($item->cuentas->unique() as $cuenta1) {{$cuenta1->correo}} - {{$cuenta1->password}} <br> @endforeach
|
|
@endif
|
|
</td>
|
|
<td>
|
|
{{$item->estado ?? ''}}
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
<div class="mx-10">
|
|
{{ $logs->links( )}}
|
|
</div>
|
|
</div>
|