I'm planning to do code confirmation in a program where it requires 2 or more codes and confirmation.I tried and stuck with code like this
@foreach ($kode as $k)
@if ($k->kode != $k->konfirmasi )
<form action="/tps/kode" method="post">
@csrf
<input type="text" name="{{ $k->status }}" id="{{ $k->status }}" placeholder="{{ $k->status }}">
<button type="submit">submit</button>
</form>
{{-- @break --}}
@else
succes
@endif
@endforeach
I tried to use break and continue but that's not the place, maybe. It seems more to the logic where if the konfirmasi is the same and everything is the same then it will be successful. but I'm confused what to use