@extends ('menu/index')
@section('konten-list-transaksi-update-status-bayar')
<main class="app-main">
    @include('Transaksi/layout-transaksi/navbar-transaksi')
    <!--begin::App Content Header-->
    <div class="p-5">
        <p class="text-center">Update status bayar</p>
        <form action="{{ route('transaksiSimpanStatusBayar', ['id' => $id]) }}" method="POST">
            @csrf
            <div class="form-check">
                <input class="form-check-input" type="radio" name="for_status_bayar_name" id="for_status_bayar1" value="On Process">
                <label class="form-check-label" for="for_status_bayar1">
                    On Process
                </label>
            </div>
            
            <div class="form-check">
                <input class="form-check-input" type="radio" name="for_status_bayar_name" id="for_status_bayar2" value="Lunas">
                <label class="form-check-label" for="for_status_bayar2">
                    Lunas
                </label>
            </div>
            <div>
              <div>
                  @if ($errors->has('for_status_bayar_name'))
                  <div style="background-color: red;" class="badge text-bg-danger">{{$errors->first('for_status_bayar_name')}}</div>
                  @endif
              </div>
                  <button class="group mt-3 relative h-6 w-36 overflow-hidden rounded-2xl bg-dark text-xs text-white">
                    Update<span></span>
                    <div class="absolute inset-0 h-full w-full scale-0 rounded-2xl transition-all duration-300 group-hover:scale-100 group-hover:bg-white/30"></div>
                </button>
            </div>
        </form>
    </div>
</main>
@endsection
