<?php
if(Auth::user()->user_type == 'organization')
{
    $layout = 'bundleviews.layouts.customer';
}
elseif(Auth::user()->user_type == 'organization_user')
{
    $layout = 'bundleviews.layouts.user';
}
?>

<?php $__env->startSection('content'); ?>
<div class="main-panel">
    <div class="content">
            <div class="panel-header">
                <div class="page-inner py-5 text-white"  style="background:#313232">
                    <div class="d-flex align-items-left align-items-md-center flex-column flex-md-row">
                        <div><div class="page-header">
                            <h4 class="page-title text-white">Topup Bundles</h4>
                            <ul class="breadcrumbs">
                                    <li class="nav-home">
                                        <a class="text-white" href="">
                                            <i class="flaticon-home"></i>
                                        </a>
                                    </li>
                                    <li class="separator">
                                        <i class="flaticon-right-arrow"></i>
                                    </li>
                                    <li class="nav-item">
                                        <a class="text-white" href="">Select Contacts</a>
                                    </li>
                                </ul>
                        </div></div>
                        <div class="ml-md-auto py-2 py-md-0">
                            <a href="" class="btn btn-white btn-border btn-round mr-2"><i class="fas fa-arrow-circle-left"></i> Back</a>
                            
                        </div>
                    </div>
                </div>
            <div id="app">
            <div class="page-category">
                <div class="page-inner mt--5">
                    <div class="row mt--2">
                            <div class="col-md-12">
                                <div class="card full-height">
                                    <div class="card-body">
                                    <!-- <div class="card-title">Topup Contact</div> -->
                                    
                                    
          
                                    
                                    
                                    <div class="row">
                                        <div class="col-md-4 card">
                                            <!-- <form class="card" action="<?php echo e(route('at.topup.mycontacts')); ?>" method="post">
                                            <?php echo csrf_field(); ?> -->
                                            <div class="card-title">Topup All Contacts( <?php echo e(count($contactsAirtime)); ?> total)</div>
                                            <!--<div class="form-group">
                                                <input class="form-control" type="number" name="amount" placeholder="Ksh"/>
                                            </div>
                                            <div class="form-group">
                                                <button type="submit" class="btn btn-info">Topup All contacts( total)</button>
                                            </div>
                                            </form> -->
                                            <topupallcontact_bundles_component/>
                                        </div>
                                        
                                        <div class="col-md-1">
                                        OR
                                        </div>
                                        <div class="card col-md-7">
                                            
                                            
                                            
                                            <?php echo $__env->make('layouts.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 


    
                                  <?php if($errors->any()): ?>
    <div class="alert alert-danger alert-dismissible" role="alert">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
    <strong>Error! </strong>There were some errors with inputs.
    <ul>
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <li><?php echo e($error); ?></li>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </ul>
    </div>

<?php endif; ?>         
                                            
                                            
                                            
                                            
                                        <div class="card-title">Topup Selected Contacts</div>
                                            <topupcontact_bundles_component :contactdata="<?php echo e(json_encode($contactsAirtime)); ?>" :errors='<?php echo e($errors); ?>'/> `
                
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>             
            </div>
        </div>
    </div>
    <?php $__env->stopSection(); ?>
<?php echo $__env->make($layout, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xamppkkkkkkkkkkkkkkkkkkk\htdocs\Accounts\resources\views/bundleviews/topup/contactbundles.blade.php ENDPATH**/ ?>