@extends('layout.admin.app')
@section('title','bank')
@section('content')
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
        <div class="col-md-5 col-8 align-self-center">
            <h3 class="text-themecolor">Bank</h3>
            <ol class="breadcrumb">
                <li class="breadcrumb-item">Edit Bank</li>
            </ol>
        </div>
        <div class="col-md-7 col-4 align-self-center">       
        </div>
    </div>
    <div class="col-md-7 col-4 align-self-center">
    </div>
</div>
<div class="container">
    <div class="col-12">
        <div class="card card-outline-info">
            <div class="card-header">
                <h4 class="m-b-0 text-white">Edit Bank</h4>
            </div>
            <div class="card-body">
                <form method="post" action="{{ url('/admin/editbanksave', array($dataBank->id)) }}" enctype="multipart/form-data">
         			{{ csrf_field() }}                 
                    <div class="form-group form-material">
                        <label>Nomor Rekening</label>
                        <input type="text" name="no_rek" value="{{ $dataBank->no_rek }}" class="form-control form-control-line" required> 
                        @if($errors->has('no_rek'))
                            <div class="text-danger">
                                {{ $errors->first('no_rek')}}
                            </div>
                        @endif
                    </div>
					<div class="form-group form-material">
                        <label>Nama Bank</label>
                        <input type="text" name="nama_bank" value="{{ $dataBank->nama_bank }}" class="form-control form-control-line" required> 
                        @if($errors->has('nama_bank'))
                            <div class="text-danger">
                                {{ $errors->first('nama_bank')}}
                            </div>
                        @endif
                    </div>
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-6">
                                
                            </div>
                            <div class="col-md-6"> 
                                <div class="row text-right">
                                    <div class="col-md-offset-3 col-md-12">
                                        <a href="{{ url('admin/bank') }}" class="btn btn-inverse">Cancel</a>
                                        <button type="submit" class="btn btn-success">Submit</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection

@section('js')

@endsection