<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-12">
            <div class=" mb-5">
                <div class="row">
                    <div class=" col-12 col-lg-8 m-auto">

                       <div class="card">
                           <div class="card-body">

                               <h5 class="text-secondary fw-bolder">
                                   <?php echo e(__('Workspace Details')); ?>

                               </h5>
                               <hr>

                               <ul class="list-group">

                                   <li class="list-group-item border-0 ps-0 pt-0 text-sm"><strong class="text-dark"><?php echo e(__('Name:')); ?></strong> <?php echo e($app_workspace->name); ?></li>
                                   <li class="list-group-item border-0 ps-0 text-sm"><strong class="text-dark"><?php echo e(__('Plan Name:')); ?></strong><?php if($app_workspace->id !== $user->workspace_id): ?>
                                           <?php if(isset($plans[$app_workspace->plan_id])): ?>
                                               <?php echo e($plans[$app_workspace->plan_id]->name); ?>

                                           <?php endif; ?>
                                       <?php else: ?>
                                           <p class="text-xs font-weight-bold mb-0"><?php echo e(__('Super Admin')); ?></p>
                                       <?php endif; ?></li>

                                   <li class="list-group-item border-0 ps-0 text-sm"><strong class="text-dark"><?php echo e(__('Account Created:')); ?></strong> <?php echo e((\App\Supports\DateSupport::parse($app_workspace->created_at))->format(config('app.date_time_format'))); ?></li>
                                   <li class="list-group-item border-0 ps-0 text-sm"><strong class="text-dark"><?php echo e(__('Status')); ?></strong><?php if($app_workspace->id !== $user->workspace_id): ?>
                                           <?php if($app_workspace->subscribed): ?>
                                               <span class="badge badge-sm bg-gradient-success"><?php echo e(__('Subscribed')); ?></span>
                                           <?php else: ?>
                                               <span class="badge badge-sm bg-warning"><?php echo e(__('Not Subscribed')); ?></span>
                                           <?php endif; ?>
                                       <?php endif; ?>
                                   </li>

                               </ul>

                               <h5 class="text-secondary fw-bolder mt-4">
                                   <?php echo e(__('Workspace Users')); ?>

                               </h5>
                               <hr>
                               <table class="table table-light">
                                   <thead>
                                   <tr>
                                       <th><?php echo e(__('Name')); ?></th>
                                       <th scope="col"><?php echo e(__('Email')); ?></th>
                                       <th scope="col"><?php echo e(__('Phone')); ?></th>
                                   </tr>
                                   </thead>
                                   <tbody>
                                   <?php $__currentLoopData = $users_in_this_workspace; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $app_user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                       <tr>

                                           <td class="ms-3"><strong class="ms-3"><?php echo e($app_user->first_name); ?> <?php echo e($app_user->lastt_name); ?></strong></td>
                                           <td> <?php echo e($app_user->email); ?></td>
                                           <td> <?php echo e($app_user->mobile_number); ?></td>
                                       </tr>
                                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                   </tbody>
                               </table>




                               <?php if($app_workspace->id !== $user->workspace_id): ?>
                                   <?php if($app_workspace->active): ?>
                                       <a href="/view-workspace?id=2&action=suspend" class="btn btn-danger mt-4" ><?php echo e(__('Suspend Workspace')); ?></a>
                                       <?php else: ?>
                                       <a href="/view-workspace?id=2&action=activate" class="btn btn-success mt-4" ><?php echo e(__('Activate Workspace')); ?></a>
                                   <?php endif; ?>
                                 <?php endif; ?>

                           </div>
                       </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('layouts.super-admin-portal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/sadia/Documents/valet/startup-kit/resources/views/super-admin/view-workspace.blade.php ENDPATH**/ ?>