@extends('Layouts/dashboard') @section('submenu') @endsection @section('content')

Finances

{{ amount($total) }}

{{ amount($balance) }}

@if ($balance > 0)
{!! Form::open([ 'data-toggle' => 'validator', 'class' => 'form-inline' ]) !!}
{!! Form::number( 'data[Withdraw][amount]', (($balance > 0) ? round($balance, 2) : ''), [ 'placeholder' => t('Amount'), 'min' => (($balance > 0) ? 1 : 0), 'value' => (($balance > 0) ? round($balance, 2) : ''), 'max' => (($balance > 0) ? round($balance, 2) : 0), 'class' => 'withdrawal input-lg form-control text-right', 'step' => '0.01', 'disabled' => ( isset($settings) && isset($settings->content->financial->account_name) && $settings->content->financial->account_name ? false : true ) ] ) !!}
@if ( !isset($settings) || !isset($settings->content->financial->account_name) || !$settings->content->financial->account_name ) @t('Please fill financial data section in the ') @t('settings') @else {!! Form::submit( t('Withdraw'), [ 'class' => 'confirm btn btn-pink btn-lg btn-wider', 'data-confirmation-content' => '#bank-details' ] ) !!} @endif
{!! Form::close() !!}
@endif
@foreach ($data as $row) @endforeach
@t('Status') @t('Created') @t('Amount')
{{ $row->status }} @date($row->created) {{ amount($row->amount) }}
{!! pagination(['total' => $pagination_total]) !!}
@endsection