{{ $pageTitle }}
{{ __('message.back') }}
@if( $type == 'detail' )
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

@php $rating = $data->rating ?? 0; $fullStars = floor($rating); $halfStar = $rating - $fullStars; @endphp @if($rating > 0)
@for ($i = 0; $i < $fullStars; $i++) @endfor @if ($halfStar > 0) @endif {{ "(" .number_format($rating, 1) . ")" }}
@endif

{{ $data->email }}

{{ $data->contact_number }}

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

{{ $data->gender }}

{{ __('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.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 }}
@endif @if( $type == 'bank_detail' )

{{ __('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.bank_address') }}

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

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

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

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

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

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

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

@endif @if( $type == 'wallet_history' )

{{ __('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) }}
@endif @if( $type == 'ride_request' )

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

{{ $dataTable->table(['class' => 'table w-100'],false) }}
@endif
@section('bottom_script') {{ in_array($type,['wallet_history','ride_request']) ? $dataTable->scripts() : '' }} @endsection