@extends('backend.layouts.app') @section('title', 'Payment') @section('content')

{{ _trans('common.Create Payment') }}

{!! Form::open([ 'route' => ['payment.store'], 'enctype' => 'multipart/form-data', 'method' => 'post', 'languages' => true, 'id' => 'payment-form', ]) !!}
@error('country') {{ $message }} @enderror
@php $data_am = \App\Payment::where('status', 0) ->orderBy('id', 'desc') ->first(); $due = floatval($data_am->user->balance) - floatval($data_am->withdraw->amount); @endphp
{{ Form::label('amount', 'Amount', ['class' => 'form-label required']) }} {{ Form::number('amount', @$data_am->withdraw->amount, ['max' => @$data['user']->balance, 'class' => 'form-control']) }} @error('amount') {{ $message }} @enderror
{{ Form::label('due', 'Created Date', ['class' => 'form-label required']) }}
@error('due') {{ $message }} @enderror
{{ Form::label('due', 'Due', ['class' => 'form-label required']) }} {{ Form::number('due', @$due, ['max' => @$data['user']->balance, 'class' => 'form-control']) }} @error('due') {{ $message }} @enderror
{{ Form::close() }}
@endsection @push('js') @endpush @section('script') @endsection