@extends('layouts.main')
@section('isMobile')

<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Tambah Bank</div>

                <div class="card-body">
                    <form method="POST" action="{{ route('tambahBank') }}">
                        @csrf

                        <div class="form-group row">
                            <label for="method" class="col-md-4 col-form-label text-md-right">Metode</label>

                            <div class="col-md-6">
                                <input id="method" type="text" class="form-control @error('method') is-invalid @enderror" name="method" required autofocus>

                                @error('method')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="nama_rek" class="col-md-4 col-form-label text-md-right">Nama Pemilik Rekening</label>

                            <div class="col-md-6">
                                <input id="nama_rek" type="text" class="form-control @error('nama_rek') is-invalid @enderror" name="nama_rek" required>

                                @error('nama_rek')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="bank" class="col-md-4 col-form-label text-md-right">Nama Bank</label>

                            <div class="col-md-6">
                                <input id="bank" type="text" class="form-control @error('bank') is-invalid @enderror" name="bank" required>

                                @error('bank')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="no_rek" class="col-md-4 col-form-label text-md-right">Nomor Rekening</label>

                            <div class="col-md-6">
                                <input id="no_rek" type="text" class="form-control @error('no_rek') is-invalid @enderror" name="no_rek" required>

                                @error('no_rek')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row mb-0">
                            <div class="col-md-6 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    Tambah Bank
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>



@endsection