WP File Manager
Current Path:
/
home
/
itutorethiopia
/
public_html
/
resources
/
views
/
withdrawrequests
/
Name
Action
..
form.blade.php
Edit
index.blade.php
Edit
view.blade.php
Edit
Editing: form.blade.php
@extends('layouts.app') @section('content') <div class="page-content row"> <!-- Page header --> <div class="page-header"> <div class="page-title"> <h3> {{ $pageTitle }} <small>{{ $pageNote }}</small></h3> </div> <ul class="breadcrumb"> <li><a href="{{ URL::to('dashboard') }}">{{ Lang::get('core.dashboard') }}</a></li> <li><a href="{{ URL::to('withdrawrequests?return='.$return) }}">{{ $pageTitle }}</a></li> <li class="active">{{ Lang::get('core.addedit') }} </li> </ul> </div> <div class="page-content-wrapper"> <ul class="parsley-error-list"> @foreach($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> <div class="sbox animated fadeInRight"> <div class="sbox-title"> <h4> <i class="fa fa-table"></i> <?php echo $pageTitle ;?> <small>{{ $pageNote }}</small></h4></div> <div class="sbox-content"> {!! Form::open(array('url'=>'withdrawrequests/save', 'class'=>'form-horizontal','files' => true , 'parsley-validate'=>'','novalidate'=>' ')) !!} <div class="col-md-12"> <fieldset> <div class="form-group" style="display:none"> <label for="Id" class=" control-label col-md-4 text-left"> {{ Lang::get('core.id') }} </label> <div class="col-md-6"> {!! Form::text('id', $row['id'],array('class'=>'form-control', 'placeholder'=>'', 'readonly'=>'true' )) !!} </div> <div class="col-md-2"> </div> </div> <div class="form-group " > <label for="User Id" class=" control-label col-md-4 text-left">Customer Name<span class="asterisk "> * </span></label> <div class="col-md-6"> {!! Form::select('user_id',$users_list,$row['user_id'],array('class'=>'select2','id'=>'user_id','required'=>true,'placeholder'=>Lang::get('core.please_select'))) !!} </div> <div class="col-md-2"> </div> </div> <div class="form-group " > <label for="Paypal Id" class=" control-label col-md-4 text-left"> {{ Lang::get('core.paypal_id') }}<span class="asterisk "> * </span> </label> <div class="col-md-6"> {!! Form::text('paypal_id', $row['paypal_id'],array('class'=>'form-control email-validation', 'placeholder'=>'','required'=>true, 'parsley-type'=>'email')) !!} </div> <div class="col-md-2"> </div> </div> <div class="form-group " > <label for="Amount" class=" control-label col-md-4 text-left"> {{ Lang::get('core.amount') }}<span class="asterisk "> * </span> </label> <div class="col-md-6"> {!! Form::input('number','amount', $row['amount'],array('class'=>'form-control amount-validation', 'placeholder'=>'', 'min'=>'0','step'=>'any','required'=>true, 'parsley-type'=>'number','parsley-pattern'=> '/^[0-9]+$/')) !!} </div> <div class="col-md-2"> </div> </div> @if($row['requested_on'] !="") <div class="form-group " > <label for="Requested On" class=" control-label col-md-4 text-left"> {{ Lang::get('core.requested_on') }} </label> <div class="col-md-6"> {!! $row['requested_on']!!} </div> <div class="col-md-2"> </div> </div> @endif <div class="form-group " > <label for="Status" class=" control-label col-md-4 text-left"> {{ Lang::get('core.Status') }} </label> <div class="col-md-6"> <select name="status" class="form-control"> <option value="pending" @if($row['status'] == 'pending') {!! 'selected' !!}@endif>{{ Lang::get('core.pending') }}</option> <option value="completed" @if($row['status'] == 'completed') {!! 'selected' !!}@endif>{{ Lang::get('core.completed') }}</option> </select> </div> <div class="col-md-2"> </div> </div> </fieldset> </div> <div style="clear:both"></div> <div class="form-group"> <label class="col-sm-4 text-right"> </label> <div class="col-sm-8 btn-section"> <button type="submit" name="apply" class="btn btn-info btn-sm" ><i class="fa fa-check-circle"></i> {{ Lang::get('core.sb_apply') }}</button> <button type="submit" name="submit" class="btn btn-primary btn-sm" ><i class="fa fa-save "></i> {{ Lang::get('core.sb_save') }}</button> <button type="button" onclick="location.href='{{ URL::to('withdrawrequests?return='.$return) }}' " class="btn btn-success btn-sm "><i class="fa fa-arrow-circle-left "></i> {{ Lang::get('core.sb_cancel') }} </button> </div> </div> {!! Form::close() !!} </div> </div> </div> </div> <script type="text/javascript"> $(document).ready(function() { $('.amount-validation').on('keypress', function(e){ if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) { // $('.parsley-error-list').html('<li>Enter the valid Amount</li>'); // setTimeout(function(){ // $('.parsley-error-list').html(''); // }, 1555555555); e.preventDefault(); } }); }); </script> @stop