<?php if (isset($component)) { $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\MasterLayout::class, []); ?>
<?php $component->withName('master-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="card card-block card-stretch">
                    <div class="card-body p-0">
                        <div class="d-flex justify-content-between align-items-center p-3">
                            <h5 class="font-weight-bold"><?php echo e($pageTitle); ?></h5>
                            <div class="float-right">
                                <a href="<?php echo e(route('users.index')); ?>" class="float-right btn btn-sm btn-primary m-2 mt-1 p-1"><i class="fa fa-angle-double-left"></i> <?php echo e(__('message.back')); ?></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <ul class="nav nav-tabs" role="tablist">
                            <li class="nav-item">
                                <a href="<?php echo e(route('users-view.show', $data->id)); ?>" class="nav-link <?php echo e($type == 'detail' ? 'active': ''); ?>"> <?php echo e(__('message.profile')); ?> </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(route('users-view.show', [ 'id' => $data->id, 'type' => 'wallethistory'])); ?>" class="nav-link <?php echo e($type == 'wallethistory' ? 'active': ''); ?>"> <?php echo e(__('message.wallet')); ?> </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(route('users-view.show', [ 'id' => $data->id, 'type' => 'orderhistory'])); ?>" class="nav-link <?php echo e($type == 'orderhistory' ? 'active': ''); ?>"> <?php echo e(__('message.order')); ?> </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(route('users-view.show', [ 'id' => $data->id, 'type' => 'withdrawrequest'])); ?>" class="nav-link <?php echo e($type == 'withdrawrequest' ? 'active': ''); ?>"> <?php echo e(__('message.withdrawrequest')); ?> </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo e(route('users-view.show', [ 'id' => $data->id, 'type' => 'useraddress'])); ?>" class="nav-link <?php echo e($type == 'useraddress' ? 'active': ''); ?>"> <?php echo e(__('message.address')); ?> </a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div class="row">
                                <?php if( $type == 'detail' ): ?>
                                    <div class="col-lg-4">
                                        <div class="card card-block p-card">
                                            <div class="profile-box">
                                                <div class="profile-card rounded">
                                                    <img class="rounded-circle avatar-100 d-block mx-auto image-fluid mb-3 profile_image_preview" src=" <?php echo e(getSingleMedia($data,'profile_image', null)); ?>" alt="profile-pic">
                                                    <h3 class="font-600 text-white text-center mb-0"><?php echo e(optional($data)->name); ?></h3>
                                                    <p class="text-white text-center mb-5">
                                                        <?php
                                                            $status = 'warning';
                                                            $status_name = 'inactive';
                                                            switch ($data->status) {
                                                                case 0:
                                                                    $status = 'warning';
                                                                    $status_name = __('message.inactive');
                                                                    break;
                                                                case 1:
                                                                    $status = 'success';
                                                                    $status_name = __('message.active');
                                                                    break;
                                                            }
                                                        ?>
                                                        <span class="text-capitalize badge bg-<?php echo e($status); ?>"><?php echo e($status_name); ?></span>
                                                    </p>
                                                </div>
                                                <div class="pro-content rounded">
                                                    <div class="d-flex align-items-center mb-3">
                                                        <div class="p-icon mr-3">
                                                            <i class="fas fa-envelope"></i>
                                                        </div>
                                                        <p class="mb-0 eml"><?php echo e(auth()->user()->hasRole('admin') ? maskSensitiveInfo('email',optional($data)->email) : maskSensitiveInfo('email',optional($data)->email)); ?></p>
                                                    </div>
                                                    <div class="d-flex align-items-center mb-3">
                                                        <div class="p-icon mr-3">
                                                            <i class="fas fa-phone-alt"></i>
                                                        </div>
                                                        <p class="mb-0"><?php echo e(auth()->user()->hasRole('admin') ? maskSensitiveInfo('contact_number',optional($data)->contact_number) : maskSensitiveInfo('contact_number',optional($data)->contact_number)); ?></p>
                                                    </div>
                                                    <div class="d-flex align-items-center mb-3">
                                                        <div class="p-icon mr-3">
                                                            <i class="fas fa-map"></i>
                                                        </div>
                                                        <p class="mb-0"><?php echo e(auth()->user()->hasRole('admin') ? optional($data->city)->name : maskSensitiveInfo('city',optional($data->city)->name)); ?></p> , <p class="mb-0"><?php echo e(auth()->user()->hasRole('admin') ? optional($data->country)->name : maskSensitiveInfo('country',optional($data->country)->name)); ?></p>
                                                    </div>
                                                    <div class="d-flex align-items-center mb-3">
                                                        <div class="p-icon mr-3">
                                                            <i class="fa fa-code-branch"></i>
                                                        </div>
                                                        <p class="mb-0"><?php echo e(__('message.app_version') . ' : ' . (auth()->user()->hasRole('admin') ? ($data->app_version ? : '0') : '0')); ?></p>
                                                    </div>
                                                    <div class="d-flex align-items-center mb-3">
                                                        <div class="p-icon mr-3">
                                                            <i class="fas fa-osi"></i>
                                                        </div>
                                                        <p class="mb-0"><?php echo e(__('message.app_source') . '  : ' . (auth()->user()->hasRole('admin') ? ($data->app_source ? : 'N/A') : 'N/A')); ?></p>
                                                    </div>
                                                    <div class="d-flex align-items-center mb-3">
                                                        <div class="p-icon mr-3">
                                                            <i class="fa-solid fa-clock-rotate-left"></i>
                                                        </div>
                                                        <p class="mb-0"><?php echo e(__('message.last_active') . '  : ' . (auth()->user()->hasRole('admin') ? (dateAgoFormate($data->last_actived_at) ? : 'N/A') : 'N/A')); ?></p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-8">
                                        <div class="row">
                                            <div class="card card-block mr-3">
                                                <div class="header-title ml-3 mt-3 d-flex justify-content-between align-items-center">
                                                    <h4 class="card-title mb-0"><?php echo e(__('message.verification_detail')); ?></h4>
                                                </div>
                                                <hr>
                                                <div class="row col-md-12">
                                                    <div class="card-body p-0">
                                                        <div class="table-responsive">
                                                            <table id="verification-table" class="table mb-0 table-bordered text-center mb-2 ml-1" role="grid">
                                                                <thead>
                                                                    <tr>
                                                                        <th scope='col'><?php echo e(__('message.type')); ?></th>
                                                                        <th scope='col'><?php echo e(__('message.is_auto_verified')); ?></th>
                                                                        <th scope='col'><?php echo e(__('message.verified_date')); ?></th>
                                                                        <th scope='col'><?php echo e(__('message.action')); ?></th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>
                                                                    <tr>
                                                                        <td><?php echo e(__('message.email')); ?></td>
                                                                        <td><?php echo e(($user->is_autoverified_email == 1 ? 'yes' :'no')); ?></td>
                                                                        <td><?php echo e(dateAgoFormate($user->email_verified_at)); ?></td>
                                                                        <td>
                                                                            <?php if($user->email_verified_at !=null): ?>
                                                                                <button type="button" class="btn btn-sm btn-primary update-verification" data-type="email" data-id="<?php echo e($user->id); ?>"><?php echo e(__('message.re_verification')); ?></button>
                                                                            <?php else: ?>
                                                                                <?php echo e('-'); ?>

                                                                            <?php endif; ?>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td><?php echo e(__('message.mobile')); ?></td>
                                                                        <td><?php echo e(($user->is_autoverified_mobile == 1 ? 'yes' :'no')); ?></td>
                                                                        <td><?php echo e(dateAgoFormate($user->otp_verify_at)); ?></td>
                                                                        <td>
                                                                            <?php if($user->otp_verify_at !=null): ?>
                                                                                <button type="button" class="btn btn-sm btn-primary update-verification" data-type="mobile" data-id="<?php echo e($user->id); ?>"><?php echo e(__('message.re_verification')); ?></button>
                                                                            <?php else: ?>
                                                                                <?php echo e('-'); ?>

                                                                            <?php endif; ?>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                            <form id="update-form" action="<?php echo e(route('update-verification', ['user' => $user])); ?>" method="POST" style="display: none;">
                                                                <?php echo csrf_field(); ?>
                                                                <input type="hidden" name="type" id="update-type">
                                                                <input type="hidden" name="id" id="update-id">
                                                                <input type="hidden" name="confirm" id="update-confirm">
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="card card-block mr-3">
                                                <div class="header-title ml-3 mt-3">
                                                    <h4 class="card-title"><?php echo e(__('message.bank_details')); ?></h4>
                                                </div>
                                                <hr>
                                                <?php $__currentLoopData = $bank_detail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div class="row">
                                                    <div class="form-group col-md-3 ">
                                                        <?php echo e(Form::label('bank_name',__('message.bank_name'),['class'=>'form-control-label text-secondary ml-2'], false )); ?>

                                                        <h6 class="ml-2"><?php echo e(optional($value)->bank_name); ?></h6>
                                                    </div>

                                                    <div class="form-group col-md-3">
                                                        <?php echo e(Form::label('bank_account_holder_name',__('message.bank_account_holder_name'),['class'=>'form-control-label text-secondary ml-2' ], false )); ?>

                                                        <h6 class="ml-2"> <?php echo e(optional($value)->account_holder_name); ?></h6>
                                                    </div>

                                                    <div class="form-group col-md-3">
                                                        <?php echo e(Form::label('account_number',__('message.account_number'),['class'=>'form-control-label text-secondary ml-2'], false )); ?>

                                                        <h6 class="ml-2"> <?php echo e(optional($value)->account_number); ?></h6>
                                                    </div>

                                                    <div class="form-group col-md-3">
                                                        <?php echo e(Form::label('bank_ifsc_code',__('message.bank_ifsc_code'),['class'=>'form-control-label text-secondary ml-2'], false )); ?>

                                                        <h6 class="ml-2"> <?php echo e(optional($value)->bank_code); ?></h6>
                                                    </div>
                                                </div>
                                                <hr>
                                                <div class="row">
                                                    <div class="row col-md-12">
                                                        <div class="form-group col-md-3">
                                                            <?php echo e(Form::label('bank_address',__('message.bank_address'),['class'=>'form-control-label text-secondary ml-2'], false )); ?>

                                                            <h6 class="ml-2"><?php echo e(optional($value)->bank_address); ?></h6>
                                                        </div>

                                                        <div class="form-group col-md-3">
                                                            <?php echo e(Form::label('routing_number',__('message.routing_number'),['class'=>'form-control-label text-secondary ml-2'], false )); ?>

                                                            <h6 class="ml-2"> <?php echo e(optional($value)->routing_number); ?></h6>
                                                        </div>

                                                        <div class="form-group col-md-3">
                                                            <?php echo e(Form::label('bank_iban',__('message.bank_iban'),['class'=>'form-control-label text-secondary ml-2'], false )); ?>

                                                            <h6 class="ml-2"> <?php echo e(optional($value)->bank_iban); ?></h6>
                                                        </div>

                                                        <div class="form-group col-md-3">
                                                            <?php echo e(Form::label('bank_swift',__('message.bank_swift'),['class'=>'form-control-label text-secondary ml-2'], false )); ?>

                                                            <h6 class="ml-2"> <?php echo e(optional($value)->bank_swift); ?></h6>
                                                        </div>
                                                            <hr>
                                                    </div>
                                                </div>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( $type == 'wallethistory' ): ?>
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-4">
                                                <div class="card card-block ml-1">
                                                    <div class="card-body">
                                                        <div class="top-block-one">
                                                            <p class="mb-1"><?php echo e(__('message.wallet_total_balance')); ?></p>
                                                            <h5><?php echo e(getPriceFormat($earning_detail->user_wallet_sum_total_amount)); ?> </h5>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="card card-block pl-3 ml-1">
                                                    <div class="card-header d-flex justify-content-between">
                                                        <div class="header-title">
                                                            <h4 class="card-title mb-0"><?php echo e(__('message.add_form_title', [ 'form' => __('message.wallet') ])); ?></h4>
                                                        </div>
                                                    </div>
                                                    <div class="card-body mr-2">
                                                        <?php echo e(Form::open(['route' => ['savewallet-save', $data->id], 'method' => 'post'])); ?>

                                                        <div class="row">
                                                            <div class="form-group col-md-6">
                                                                <?php echo e(Form::label('type',__('message.type').' <span class="text-danger">*</span>',['class'=>'form-control-label'],false)); ?>

                                                                <?php echo e(Form::select('type',[ 'credit' => __('message.credit'), 'debit' => __('message.debit') ], old('type'), [ 'class' => 'form-control select2js','required'])); ?>

                                                            </div>
                                                            <div class="form-group col-md-6">
                                                                <?php echo e(Form::label('amount', __('message.amount').' <span class="text-danger">*</span>', ['class' => 'form-control-label' ], false )); ?>

                                                                <?php echo e(Form::number('amount', old('amount'), [ 'class' => 'form-control', 'min' => 0, 'step' => 'any', 'required', 'placeholder' => __('message.amount') ])); ?>

                                                            </div>
                                                        </div>

                                                            <?php echo e(Form::submit( __('message.save'), ['class'=>'btn btn-md btn-primary float-right' ])); ?>

                                                        <?php echo Form::close(); ?>

                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-8">
                                                <div class="card card-block mr-1 ml-1">
                                                    <div class="card-header d-flex justify-content-between flex-wrap">
                                                        <div class="header-title">
                                                            <h4 class="card-title"><?php echo e(__('message.wallethistory')); ?></h4>
                                                        </div>
                                                    </div>
                                                    <div class="card-body p-2 mr-2">
                                                        <div class="table-responsive mt-4">
                                                            <table id="basic-table" class="table mb-1  text-center" role="grid">
                                                                <thead>
                                                                    <tr>
                                                                        <th scope='col'><?php echo e(__('message.order_id')); ?></th>
                                                                        <th scope='col'><?php echo e(__('message.transaction_type')); ?></th>
                                                                        <th scope='col'><?php echo e(__('message.amount')); ?></th>
                                                                        <th scope='col'><?php echo e(__('message.date')); ?></th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>

                                                                    <?php if(count($wallet_history) > 0): ?>
                                                                        <?php $__currentLoopData = $wallet_history; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                            <tr>
                                                                                <td><a href="<?php echo e(route('order-view.show', $value->order_id)); ?>"><?php echo e(optional($value)->order_id); ?></a></td>
                                                                                <?php
                                                                                $key = str_replace('_', ' ', ucwords($value->transaction_type ?? '-', '_'));
                                                                                ?>
                                                                                <td><?php echo e($key); ?></td>
                                                                                <td><?php echo e(getPriceFormat($value->amount) ?? '-'); ?></td>
                                                                                <td><?php echo e(dateAgoFormate($value->created_at) ?? '-'); ?></td>
                                                                            </tr>
                                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                    <?php else: ?>
                                                                        <tr>
                                                                            <td colspan="9"><?php echo e(__('message.no_record_found')); ?></td>
                                                                        </tr>
                                                                    <?php endif; ?>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( $type == 'orderhistory' ): ?>
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="card card-block mr-1 ml-1">
                                                    <div class="card-body p-2 mr-2">
                                                        <table id="basic-table" class="table mb-3  text-center">
                                                            <thead>
                                                                <tr>
                                                                    <th scope='col'><?php echo e(__('message.order_id')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.pickup_address')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.delivery_address')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.delivery_man')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.pickup_date')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.delivery_date')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.invoice')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.created_at')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.status')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.is_return')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.assign')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.action')); ?></th>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <?php if($order->count() > 0): ?>
                                                                    <?php $__currentLoopData = $order; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $orders): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                        <?php
                                                                            $status = 'primary';
                                                                                $order_status = $orders->status;
                                                                            switch ($order_status) {
                                                                                case 'draft':
                                                                                $status = 'light';
                                                                                $status_name = __('message.draft');
                                                                                break;
                                                                            case 'create':
                                                                                $status = 'primary';
                                                                                $status_name = __('message.create');
                                                                                break;
                                                                            case 'completed':
                                                                                $status = 'success';
                                                                                $status_name = __('message.completed');
                                                                                break;
                                                                            case 'courier_assigned':
                                                                                $status = 'warning';
                                                                                $status_name = __('message.courier_assigned');
                                                                                break;
                                                                            case 'active':
                                                                                $status = 'info';
                                                                                $status_name = __('message.active');
                                                                                break;
                                                                            case 'courier_departed':
                                                                                $status = 'info';
                                                                                $status_name = __('message.courier_departed');
                                                                                break;
                                                                            case 'courier_picked_up':
                                                                                $status = 'warning';
                                                                                $status_name = __('message.pickup');
                                                                                break;
                                                                            case 'courier_arrived':
                                                                                $status = 'warning';
                                                                                $status_name = __('message.arrived');
                                                                                break;
                                                                            case 'cancellled':
                                                                                $status = 'danger';
                                                                                $status_name = __('message.cancellled');
                                                                                break;
                                                                            case 'delayed':
                                                                                $status = 'secondary';
                                                                                $status_name = __('message.delayed');
                                                                                break;
                                                                            case 'failed':
                                                                                $status = 'danger';
                                                                                $status_name = __('message.failed');
                                                                                break;
                                                                            }
                                                                        ?>

                                                                        <tr>
                                                                            <td><a href="<?php echo e(route('order.show', $orders)); ?>"><?php echo e(optional($orders)->id); ?></a></td>
                                                                            <td>
                                                                                <?php
                                                                                    $pickup_address = $orders->pickup_point['address'];
                                                                                    echo (isset($pickup_address)) ?'<span data-toggle="tooltip" title="'.$pickup_address.'">'.stringLong($pickup_address, 'title',20).'</span>' : '-';
                                                                                ?>
                                                                            </td>
                                                                            <td>
                                                                                <?php
                                                                                    $delivery_address = $orders->delivery_point['address'];
                                                                                    echo (isset($delivery_address)) ?'<span data-toggle="tooltip" title="'.$delivery_address.'">'.stringLong($delivery_address, 'title',20).'</span>' : '-';
                                                                                ?>
                                                                            </td>
                                                                            <td><a href="<?php echo e(route('users.show', $orders)); ?>"><?php echo e(optional($orders->delivery_man)->name); ?></a></td>
                                                                            <td><?php echo e(dateAgoFormate($orders->pickup_datetime) ?? '-'); ?></td>
                                                                            <td><?php echo e(dateAgoFormate($orders->delivery_datetime) ?? '-'); ?></td>
                                                                            <td>
                                                                                <?php if(optional($orders)->status == 'completed'): ?>
                                                                                    <a href="<?php echo e(route('order-invoice', $orders->id)); ?>"><i class="fa fa-download"></i></a>
                                                                                <?php else: ?>
                                                                                N/A
                                                                                <?php endif; ?>
                                                                            </td>
                                                                            <td><?php echo e(dateAgoFormate($orders->created_at) ?? '-'); ?></td>
                                                                            <td><span class="badge bg-<?php echo e($status); ?>"><?php echo e(__('message.'.$order_status)); ?></span></td>
                                                                            <td>
                                                                                <?php
                                                                                $parentOrderIds = $orders->pluck('parent_order_id')->toArray();
                                                                                ?>
                                                                                    <?php if(in_array($orders->id, $parentOrderIds)): ?>
                                                                                        <i class="fa-solid fa-right-left" style="color: #9B6BFF;"></i>
                                                                                    <?php else: ?>
                                                                                       <?php echo e('-'); ?>

                                                                                    <?php endif; ?>
                                                                            </td>
                                                                            <td>
                                                                                <?php if($orders->deleted_at): ?>
                                                                                    <span style="color: red"><?php echo e(__('message.order_deleted')); ?></span>
                                                                                <?php elseif($orders->status === 'cancelled'): ?>
                                                                                    <span style="color: #9B6BFF"><?php echo e(__('message.order_cancelled')); ?></span>
                                                                                <?php elseif($orders->status === 'draft'): ?>
                                                                                    <span style="color: #9B6BFF"><?php echo e(__('message.order_draft')); ?></span>
                                                                                <?php elseif($orders->status === 'completed'): ?>
                                                                                    <span style="color: #9B6BFF"><?php echo e(__('message.order_completed')); ?></span>
                                                                                <?php elseif($orders->delivery_man_id === null): ?>
                                                                                    <a href="<?php echo e(route('order-assign', ['id' => $orders->id])); ?>" style="background-color: #9B6BFF; border-color: #4b0082; color: #ffffff;" class="btn btn-sm loadRemoteModel"><?php echo e(__('message.assign')); ?></a>
                                                                                <?php else: ?>
                                                                                    <a href="<?php echo e(route('order-assign', ['id' => $orders->id])); ?>" style="background-color: #9B6BFF; border-color: #4b0082; color: #ffffff;" class="btn btn-sm loadRemoteModel"><?php echo e(__('message.transfer')); ?></a>
                                                                                <?php endif; ?>
                                                                            </td>
                                                                            <td>
                                                                                <div class="d-flex justify-content-end align-items-center">
                                                                                    <?php echo e(Form::open(['route' => ['order.destroy', $orders->id], 'method' => 'delete', 'data--submit' => 'order'.$orders->id])); ?>

                                                                                        <a class="mr-2 text-danger" href="javascript:void(0)" data--submit="order<?php echo e($orders->id); ?>"
                                                                                            data--confirmation='true' data-title="<?php echo e(__('message.delete_form_title',['form'=> __('message.order') ])); ?>"
                                                                                            title="<?php echo e(__('message.delete_form_title',['form'=>  __('message.order') ])); ?>"
                                                                                            data-message='<?php echo e(__("message.delete_msg")); ?>'>
                                                                                            <i class="fas fa-trash-alt"></i>
                                                                                        </a>
                                                                                    <?php echo e(Form::close()); ?>

                                                                                    <?php if( auth()->user()->hasRole('admin') && $orders->status != 'draft' ): ?>
                                                                                        <a class="mr-2" href="<?php echo e(route('order.show',$orders->id)); ?>"><i class="fas fa-eye text-secondary"></i></a>
                                                                                    <?php endif; ?>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                <?php else: ?>
                                                                    <tr>
                                                                        <td colspan="9"><?php echo e(__('message.no_record_found')); ?></td>
                                                                    </tr>
                                                                <?php endif; ?>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if($type == 'withdrawrequest'): ?>
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="card card-block mr-1 ml-1">
                                                    <div class="card-body p-2 mr-2">
                                                        <table id="basic-table" class="table mb-3  text-center">
                                                            <thead>
                                                                <tr>
                                                                    <th scope='col'><?php echo e(__('message.no')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.amount')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.available_balnce')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.request_at')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.action_at')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.bank_details')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.status')); ?></th>
                                                                    <th scope='col'><?php echo e(__('message.action')); ?></th>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <?php if($withdraw->count() > 0): ?>
                                                                    <?php
                                                                        $counter = 1;
                                                                    ?>
                                                                    <?php $__currentLoopData = $withdraw; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                        <tr>
                                                                            <td><?php echo e($counter); ?></td>
                                                                            <td><?php echo e(getPriceFormat($value->amount) ?? 0); ?></td>
                                                                            <td>
                                                                            <?php echo e($value->status == 'requested' ? ($wallte ? getPriceFormat($wallte->total_amount) : 0) : '-'); ?>

                                                                            </td>
                                                                            <td><?php echo e(dateAgoFormate($value->created_at) ?? '-'); ?></td>
                                                                            <td><?php echo e(dateAgoFormate($value->updated_at) ?? '-'); ?></td>
                                                                            <td>
                                                                                <a class="mr-2 loadRemoteModel" href="<?php echo e(route('withdrawrequest.show',$value->user_id)); ?>"><i class="fas fa-eye text-secondary"></i></a>
                                                                            </td>
                                                                            <td>
                                                                                <?php
                                                                                    $status = 'danger';
                                                                                    $status_name = 'requested';
                                                                                    switch ($value->status) {
                                                                                        case 'requested':
                                                                                            $status = 'indigo';
                                                                                            $status_name = __('message.pending');
                                                                                            break;
                                                                                        case 'decline':
                                                                                            $status = 'danger';
                                                                                            $status_name = __('message.declined');
                                                                                            break;
                                                                                        case 'approved':
                                                                                            $status = 'success';
                                                                                            $status_name = __('message.approved');
                                                                                            break;
                                                                                    }
                                                                                ?>
                                                                            <span class="text-capitalize badge bg-<?php echo e($status); ?>"><?php echo e($status_name  ?? ''); ?> </span>
                                                                            </td>
                                                                            <td>
                                                                                <?php if($value->status == 'requested'): ?>
                                                                                    <a class="mr-2" href="<?php echo e(route('approvedWithdrawRequest', ['id' => $value->id])); ?>"><i class="fas fa-check"></i></a>
                                                                                    <a class="mr-2" href="<?php echo e(route('declineWithdrawRequest', ['id' => $value->id])); ?>"><i class="fa fa-times text icon-color"></i></a>
                                                                                <?php else: ?>
                                                                                    <?php echo e('-'); ?>

                                                                                <?php endif; ?>
                                                                            </td>
                                                                        </tr>
                                                                        <?php
                                                                            $counter++;
                                                                        ?>
                                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                <?php else: ?>
                                                                    <tr>
                                                                        <td colspan="9"><?php echo e(__('message.no_record_found')); ?></td>
                                                                    </tr>
                                                                <?php endif; ?>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if($type == 'useraddress'): ?>
                                    <div class="col-md-12">
                                        <?php $__currentLoopData = $userAddresses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="card mb-2">
                                                <div class="card-body">
                                                    <div class="row">
                                                        <div class="col-md-12">
                                                            <div>
                                                                <strong><?php echo e($item->address); ?></strong><br>
                                                                <strong><?php echo e($item->contact_number); ?></strong>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php $__env->startSection('bottom_script'); ?>
        <script>
           $("#basic-table").DataTable({
                "dom":  '<"row align-items-center"<"col-md-2"><"col-md-6" B><"col-md-4"f>><"table-responsive my-3" rt><"d-flex" <"flex-grow-1" l><"p-2" i><"mt-4" p>><"clear">',
                "order": [[0, "desc"]]
            });
            $(document).ready(function() {
                $('.update-verification').click(function() {
                    var type = $(this).data('type');
                    var id = $(this).data('id');
                    var message = 'Are you sure you want to re-verify ' + type + '?';
                    Swal.fire({
                        title: message,
                        showDenyButton: true,
                        confirmButtonText: 'Yes',
                        denyButtonText: 'No'
                    }).then((result) => {
                        if (result.isConfirmed) {
                            $('#update-type').val(type);
                            $('#update-id').val(id);
                            $('#update-confirm').val('yes');
                            $('#update-form').submit();
                        } else if (result.isDenied) {
                            $('#update-confirm').val('no');
                        }
                    });
                });
            });
        </script>
    <?php $__env->stopSection(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23)): ?>
<?php $component = $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23; ?>
<?php unset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23); ?>
<?php endif; ?>
<?php /**PATH /www/wwwroot/mxunzo.mimeld.com/resources/views/users/show.blade.php ENDPATH**/ ?>