@extends('layouts.app')
@section('content')
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- page content start-->
<div class="right_col" role="main">
    <div class="">
        <div class="page-title">
            <div class="nav_menu">
                <nav>
                    <div class="nav toggle">
                    <a id="menu_toggle"><i class="fa fa-bars sidemenu_toggle"></i></a><a href="{!! url('/payment/list') !!}" id=""><i class=""><img src="{{ URL::asset('public/supplier/Back Arrow.png') }}" class="back-arrow"></i><span class="titleup">
                                {{ trans('message.Edit Payment Method') }}</span></a>
                    </div>
                    @include('dashboard.profile')
                </nav>
            </div>

        </div>
        @include('success_message.message')
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_content">
                      <form action="update/{{ $payment_methods->id }}" method="post" enctype="multipart/form-data" data-parsley-validate class="form-horizontal form-label-left upperform" id="paymet-method-add-form">
                        <div class="form-group row">
                          <label class="control-label col-md-2 col-sm-2 col-xs-10" for="first-name">{{ trans('message.Payment Type') }} <label class="color-danger">*</label></label>
                          <div class="col-md-4 col-sm-4 col-xs-10">
                            <input type="text" required="required" name="payment" value="{{ $payment_methods->payment }}" class="form-control col-md-7 col-xs-12" maxlength="20">
                          </div>
                        </div>
            
                        <div class="row">
                          <input type="hidden" name="_token" value="{{ csrf_token() }}">
                          <!-- <div class="row col-md-6 col-lg-6 col-xl-6 col-xxl-6 col-sm-6 col-xs-6 my-1 mx-0">
                            <a class="btn btn-primary" href="{{ URL::previous() }}">{{ trans('message.CANCEL') }}</a>
                          </div> -->
                          <div class="row col-md-6 col-lg-6 col-xl-6 col-xxl-6 col-sm-6 col-xs-6 addPaymentSubmitButton my-1 mx-0 pl-8">
                            <button type="submit" class="btn btn-success">{{ trans('message.UPDATE') }}</button>
                          </div>
                        </div>
                      </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /page content -->


<!-- Scripts starting -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<!-- For form field validate -->
{!! JsValidator::formRequest('App\Http\Requests\StorePaymentMethodRequest', '#paymet-method-add-form') !!}
<script type="text/javascript" src="{{ asset('public/vendor/jsvalidation/js/jsvalidation.js') }}"></script>

@endsection