{{ $pageTitle }}
{{ __('message.back') }}
01.jpg

{{ $data->display_name }}

@php $status = 'danger'; $status_label = __('message.offline'); switch ($data->is_online) { case '1': $status = 'success'; $status_label = __('message.online'); break; } @endphp {{ $status_label }} @if( $data->is_available == 1 ) {{ __('message.in_service') }} @endif

{{ $data->email }}

{{ $data->contact_number }}

@if( $data->gender == 'female' ) @elseif( $data->gender == 'other' ) @else @endif

{{ $data->gender }}

@php $rating = $data->rating ?? 0; @endphp @if( $rating > 0 )
@endif

{{ __('message.detail_form_title', [ 'form' => __('message.service') ]) }}

service-detail

{{ optional($data->service)->name }}

{{ optional($data->userDetail)->car_model }} ( {{ optional($data->userDetail)->car_color }} )

{{ optional($data->userDetail)->car_plate_number }}

{{ optional($data->userDetail)->car_production_year }}

{{ __('message.detail_form_title', [ 'form' => __('message.bank') ]) }}

{{ __('message.bank_name') }}

{{ optional($data->userBankAccount)->bank_name ?? '-' }}

{{ __('message.bank_code') }}

{{ optional($data->userBankAccount)->bank_code ?? '-' }}

{{ __('message.account_holder_name') }}

{{ optional($data->userBankAccount)->account_holder_name ?? '-' }}

{{ __('message.account_number') }}

{{ optional($data->userBankAccount)->account_number ?? '-' }}

{{ __('message.total_earning') }}

{{ getPriceFormat( $data->total_earning ) ?? 0 }}

{{ __('message.cash_earning') }}

{{ getPriceFormat( $data->cash_earning ) ?? 0 }}

{{ __('message.wallet_earning') }}

{{ getPriceFormat( $data->wallet_earning ) ?? 0 }}

{{ __('message.admin_commission') }}

{{ getPriceFormat( $data->admin_commission ) ?? 0 }}

{{ __('message.driver_earning') }}

{{ getPriceFormat( $data->driver_earning ) ?? 0 }}

{{ __('message.wallet_balance') }}

{{ getPriceFormat(optional($data->userWallet)->total_amount) ?? 0 }}

{{ __('message.total_withdraw') }}

{{ getPriceFormat(optional($data->userWallet)->total_withdrawn) ?? 0 }}

{{ __('message.add_form_title', [ 'form' => __('message.wallet') ]) }}

{!! Form::open(['route' => ['savewallet.fund', $data->id], 'method' => 'post' ]) !!}
{{ Form::label('type', __('message.type').' *',[ 'class' => 'form-control-label' ], false) }} {{ Form::select('type', [ 'credit' => __('message.credit'), 'debit' => __('message.debit') ], old('type'), [ 'class' => 'form-control select2js', 'required']) }}
{{ Form::label('transaction_type', __('message.transaction_type').' *',[ 'class' => 'form-control-label' ], false) }} {{ Form::select('transaction_type',[], old('transaction_type'), [ 'class' => 'form-control select2js', 'required']) }}
{{ Form::label('amount', __('message.amount').' *', ['class' => 'form-control-label' ], false ) }} {{ Form::number('amount', old('amount'), [ 'class' => 'form-control', 'min' => 0, 'step' => 'any', 'required', 'placeholder' => __('message.amount') ]) }}
{{ Form::label('description', __('message.description'), ['class' => 'form-control-label']) }} {{ Form::textarea('description', null, [ 'class' => 'form-control textarea', 'rows' => 2, 'placeholder' => __('message.description') ]) }}

{{ Form::submit( __('message.save'), ['class'=>'btn btn-md btn-primary float-right' ]) }} {!! Form::close() !!}

{{ __('message.list_form_title', [ 'form' => __('message.wallethistory') ]) }}

{{ $dataTable->table(['class' => 'table w-100'],false) }}
@section('bottom_script') {{ $dataTable->scripts() }} @endsection