HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/xfacil.desafio.com.py/resources/views/livewire/cargarsolicitud.blade.php
<div>
    <table class="table table-bordered" id="example2" style="background-color:white;">
        <thead>
            <tr>
                <th>Items</th>
                <th>Monedas</th>
                <th>Acciones</th>
            </tr>
        </thead>
        <tbody>
            @foreach($productos as $value)
                <tr>
                    <td>{{ $value->nombre }}</td>
                    <td>{{ $value->monedas }}</td>
                    <td>
                        @if($value->estado == 1)
                            <button type="button" class="btn btn-outline-info" wire:click="cambiar({{ $value->id }})">Sin seguimiento</button>
                        @elseif($value->estado == 2)
                            <button type="button" class="btn btn-outline-warning" wire:click="cambiar({{ $value->id }})">Aprobado</button>
                        @elseif($value->estado == 3)
                            <button type="button" class="btn btn-outline-success" wire:click="cambiar({{ $value->id }})">Entregado</button>
                        @elseif($value->estado == 4)
                            <button type="button" class="btn btn-outline-danger" wire:click="cambiar({{ $value->id }})">Sin stock</button>
                        @endif
                    </td>
                </tr>
            @endforeach
        </tbody>
    </table>
</div>