<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/** @var $model app\models\MPembayaran */

$this->title = 'Konfirmasi Pembayaran';
?>

<div class="container" style="max-width:650px;margin-top:40px;">

    <div class="panel panel-default" style="box-shadow:0 8px 25px rgba(0,0,0,.15);border-radius:10px;">

        <!-- HEADER -->
        <div class="panel-heading text-center"
             style="background:linear-gradient(135deg,#28a745,#20c997);color:white;padding:25px;border-radius:10px 10px 0 0;">

            <h2 style="margin:0;">
                <i class="fa fa-check-circle"></i> Konfirmasi Pembayaran
            </h2>

            <p style="margin-top:8px;">
                Invoice: <strong><?= Html::encode($model->vKode) ?></strong>
            </p>
        </div>

        <!-- BODY -->
        <div class="panel-body" style="padding:30px;">

            <div class="alert alert-info">
                <i class="fa fa-info-circle"></i>
                Silakan isi data transfer sesuai bukti pembayaran Anda.
            </div>

            <?php $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal']
            ]); ?>

            <?= $form->field($model, 'vNama')->textInput([
                'placeholder' => 'Nama pemilik rekening',
                'required' => true,
            ])->label('Nama Pemilik') ?>

            <?= $form->field($model, 'vBank')->textInput([
                'placeholder' => 'Nama bank pengirim',
                'required' => true,
            ])->label('Nama BANK') ?>

            <?= $form->field($model, 'vNoRek')->textInput([
                'placeholder' => 'Nomor rekening',
                'required' => true,
            ])->label('No. Rekening') ?>

            <hr>

            <div class="text-center">

                <?= Html::submitButton(
                    '<i class="fa fa-paper-plane"></i> Kirim Konfirmasi',
                    [
                        'class' => 'btn btn-success btn-lg',
                        'style' => 'padding:12px 35px;font-size:16px;'
                    ]
                ) ?>

                <br><br>

                <?= Html::a(
                    '<i class="fa fa-arrow-left"></i> Kembali ke Invoice',
                    ['view-inv', 'id' => $model->vKode],
                    ['class' => 'btn btn-default']
                ) ?>

            </div>

            <?php ActiveForm::end(); ?>

        </div>

    </div>

</div>
