<?php $__env->startSection('title', 'Subscriptions'); ?>

<?php $__env->startSection('header'); ?>
    <?php if (isset($component)) { $__componentOriginal111218edafe37a3ff745a947bea8c7e5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal111218edafe37a3ff745a947bea8c7e5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.isp-page-header','data' => ['title' => 'Subscriptions','module' => 'Billing &amp; plans','description' => 'Active and historical subscriber plans, renewal windows, and billing alignment.','primaryLabel' => 'Create subscription','primaryHref' => route('isp.subscriptions.create')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('isp-page-header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Subscriptions','module' => 'Billing &amp; plans','description' => 'Active and historical subscriber plans, renewal windows, and billing alignment.','primaryLabel' => 'Create subscription','primaryHref' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.subscriptions.create'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal111218edafe37a3ff745a947bea8c7e5)): ?>
<?php $attributes = $__attributesOriginal111218edafe37a3ff745a947bea8c7e5; ?>
<?php unset($__attributesOriginal111218edafe37a3ff745a947bea8c7e5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal111218edafe37a3ff745a947bea8c7e5)): ?>
<?php $component = $__componentOriginal111218edafe37a3ff745a947bea8c7e5; ?>
<?php unset($__componentOriginal111218edafe37a3ff745a947bea8c7e5); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <?php if (isset($component)) { $__componentOriginalff420112e83fb52a8cb508be690fe32b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalff420112e83fb52a8cb508be690fe32b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.resource-index','data' => ['filterAction' => route('isp.subscriptions.index'),'filterChips' => $filterChips ?? [],'exportFormats' => $exportFormats ?? [],'paginator' => $subscriptions,'empty' => $subscriptions->isEmpty(),'emptyTitle' => 'No subscriptions match','emptyMessage' => 'Adjust filters or create a subscription for a customer.','emptyCtaLabel' => 'Create subscription','emptyCtaHref' => route('isp.subscriptions.create')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('resource-index'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filter-action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.subscriptions.index')),'filter-chips' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($filterChips ?? []),'export-formats' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exportFormats ?? []),'paginator' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($subscriptions),'empty' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($subscriptions->isEmpty()),'empty-title' => 'No subscriptions match','empty-message' => 'Adjust filters or create a subscription for a customer.','empty-cta-label' => 'Create subscription','empty-cta-href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.subscriptions.create'))]); ?>
         <?php $__env->slot('filters', null, []); ?> 
            <?php if (isset($component)) { $__componentOriginal609c27e10886775abd521bb0a4000498 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal609c27e10886775abd521bb0a4000498 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-filters.search','data' => ['placeholder' => 'Customer, phone, username, plan…']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-filters.search'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['placeholder' => 'Customer, phone, username, plan…']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal609c27e10886775abd521bb0a4000498)): ?>
<?php $attributes = $__attributesOriginal609c27e10886775abd521bb0a4000498; ?>
<?php unset($__attributesOriginal609c27e10886775abd521bb0a4000498); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal609c27e10886775abd521bb0a4000498)): ?>
<?php $component = $__componentOriginal609c27e10886775abd521bb0a4000498; ?>
<?php unset($__componentOriginal609c27e10886775abd521bb0a4000498); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-filters.select','data' => ['name' => 'status','label' => 'Status','placeholder' => 'All','options' => [
                    'active' => 'Active',
                    'expired' => 'Expired',
                    'cancelled' => 'Cancelled',
                    'suspended' => 'Suspended',
                ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-filters.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'status','label' => 'Status','placeholder' => 'All','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                    'active' => 'Active',
                    'expired' => 'Expired',
                    'cancelled' => 'Cancelled',
                    'suspended' => 'Suspended',
                ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f)): ?>
<?php $attributes = $__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f; ?>
<?php unset($__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f)): ?>
<?php $component = $__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f; ?>
<?php unset($__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-filters.select','data' => ['name' => 'plan_id','label' => 'Plan','placeholder' => 'All plans','class' => 'min-w-[180px] flex-1','options' => $plans->pluck('name', 'id')->mapWithKeys(fn ($name, $id) => [(string) $id => $name])->all()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-filters.select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'plan_id','label' => 'Plan','placeholder' => 'All plans','class' => 'min-w-[180px] flex-1','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($plans->pluck('name', 'id')->mapWithKeys(fn ($name, $id) => [(string) $id => $name])->all())]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f)): ?>
<?php $attributes = $__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f; ?>
<?php unset($__attributesOriginaldf4625c685cd48624c5c9a5b5c768d2f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f)): ?>
<?php $component = $__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f; ?>
<?php unset($__componentOriginaldf4625c685cd48624c5c9a5b5c768d2f); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal379007f10604674fff3ace02f90f5fae = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal379007f10604674fff3ace02f90f5fae = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-filters.per-page','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-filters.per-page'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal379007f10604674fff3ace02f90f5fae)): ?>
<?php $attributes = $__attributesOriginal379007f10604674fff3ace02f90f5fae; ?>
<?php unset($__attributesOriginal379007f10604674fff3ace02f90f5fae); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal379007f10604674fff3ace02f90f5fae)): ?>
<?php $component = $__componentOriginal379007f10604674fff3ace02f90f5fae; ?>
<?php unset($__componentOriginal379007f10604674fff3ace02f90f5fae); ?>
<?php endif; ?>
         <?php $__env->endSlot(); ?>

         <?php $__env->slot('table', null, []); ?> 
            <?php if (isset($component)) { $__componentOriginalc8463834ba515134d5c98b88e1a9dc03 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc8463834ba515134d5c98b88e1a9dc03 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.data-table','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('data-table'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                <thead>
                    <tr>
                        <th>Customer</th>
                        <th>Plan</th>
                        <th>Start</th>
                        <th>End</th>
                        <th>Auto renew</th>
                        <th>Status</th>
                        <?php if (isset($component)) { $__componentOriginal69c4acddde3079c8bfc515678f409176 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal69c4acddde3079c8bfc515678f409176 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table-actions.header','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('table-actions.header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal69c4acddde3079c8bfc515678f409176)): ?>
<?php $attributes = $__attributesOriginal69c4acddde3079c8bfc515678f409176; ?>
<?php unset($__attributesOriginal69c4acddde3079c8bfc515678f409176); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal69c4acddde3079c8bfc515678f409176)): ?>
<?php $component = $__componentOriginal69c4acddde3079c8bfc515678f409176; ?>
<?php unset($__componentOriginal69c4acddde3079c8bfc515678f409176); ?>
<?php endif; ?>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $subscriptions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subscription): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if (isset($component)) { $__componentOriginal693da8371f81527050c5488b27378bc6 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal693da8371f81527050c5488b27378bc6 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-table.row','data' => ['href' => route('isp.subscriptions.show', $subscription)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-table.row'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.subscriptions.show', $subscription))]); ?>
                            <td>
                                <div class="font-semibold text-slate-900 dark:text-white"><?php echo e($subscription->customer->full_name); ?></div>
                                <div class="text-slate-500 dark:text-slate-400"><?php echo e($subscription->customer->phone_number); ?></div>
                            </td>
                            <td><?php echo e($subscription->plan->name); ?></td>
                            <td class="whitespace-nowrap"><?php echo e($subscription->start_date->format('M j, Y')); ?></td>
                            <td class="whitespace-nowrap">
                                <?php echo e($subscription->end_date->format('M j, Y')); ?>

                                <?php if($subscription->end_date < now() && $subscription->status === 'active'): ?>
                                    <span class="ml-1 text-xs font-semibold text-rose-600 dark:text-rose-400">(Expired)</span>
                                <?php endif; ?>
                            </td>
                            <td>
                                <?php if($subscription->auto_renew): ?>
                                    <span class="text-emerald-600 dark:text-emerald-400 font-medium">Yes</span>
                                <?php else: ?>
                                    <span class="text-slate-400">No</span>
                                <?php endif; ?>
                            </td>
                            <td>
                                <?php if($subscription->status === 'active'): ?>
                                    <?php if (isset($component)) { $__componentOriginal8c81617a70e11bcf247c4db924ab1b62 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8c81617a70e11bcf247c4db924ab1b62 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.status-badge','data' => ['status' => 'active']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('status-badge'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['status' => 'active']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8c81617a70e11bcf247c4db924ab1b62)): ?>
<?php $attributes = $__attributesOriginal8c81617a70e11bcf247c4db924ab1b62; ?>
<?php unset($__attributesOriginal8c81617a70e11bcf247c4db924ab1b62); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8c81617a70e11bcf247c4db924ab1b62)): ?>
<?php $component = $__componentOriginal8c81617a70e11bcf247c4db924ab1b62; ?>
<?php unset($__componentOriginal8c81617a70e11bcf247c4db924ab1b62); ?>
<?php endif; ?>
                                <?php elseif($subscription->status === 'expired'): ?>
                                    <?php if (isset($component)) { $__componentOriginal8c81617a70e11bcf247c4db924ab1b62 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8c81617a70e11bcf247c4db924ab1b62 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.status-badge','data' => ['status' => 'expired']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('status-badge'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['status' => 'expired']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8c81617a70e11bcf247c4db924ab1b62)): ?>
<?php $attributes = $__attributesOriginal8c81617a70e11bcf247c4db924ab1b62; ?>
<?php unset($__attributesOriginal8c81617a70e11bcf247c4db924ab1b62); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8c81617a70e11bcf247c4db924ab1b62)): ?>
<?php $component = $__componentOriginal8c81617a70e11bcf247c4db924ab1b62; ?>
<?php unset($__componentOriginal8c81617a70e11bcf247c4db924ab1b62); ?>
<?php endif; ?>
                                <?php else: ?>
                                    <?php if (isset($component)) { $__componentOriginal8c81617a70e11bcf247c4db924ab1b62 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8c81617a70e11bcf247c4db924ab1b62 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.status-badge','data' => ['status' => ucfirst($subscription->status)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('status-badge'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(ucfirst($subscription->status))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8c81617a70e11bcf247c4db924ab1b62)): ?>
<?php $attributes = $__attributesOriginal8c81617a70e11bcf247c4db924ab1b62; ?>
<?php unset($__attributesOriginal8c81617a70e11bcf247c4db924ab1b62); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8c81617a70e11bcf247c4db924ab1b62)): ?>
<?php $component = $__componentOriginal8c81617a70e11bcf247c4db924ab1b62; ?>
<?php unset($__componentOriginal8c81617a70e11bcf247c4db924ab1b62); ?>
<?php endif; ?>
                                <?php endif; ?>
                            </td>
                            <td class="text-right whitespace-nowrap">
                                <?php if (isset($component)) { $__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table-actions','data' => ['width' => 'w-52']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('table-actions'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['width' => 'w-52']); ?>
                                    <?php if (isset($component)) { $__componentOriginal4bbb0a061de663e48c42cf83a926a23f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4bbb0a061de663e48c42cf83a926a23f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table-actions.link','data' => ['href' => route('isp.subscriptions.show', $subscription),'label' => 'View']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('table-actions.link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.subscriptions.show', $subscription)),'label' => 'View']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4bbb0a061de663e48c42cf83a926a23f)): ?>
<?php $attributes = $__attributesOriginal4bbb0a061de663e48c42cf83a926a23f; ?>
<?php unset($__attributesOriginal4bbb0a061de663e48c42cf83a926a23f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4bbb0a061de663e48c42cf83a926a23f)): ?>
<?php $component = $__componentOriginal4bbb0a061de663e48c42cf83a926a23f; ?>
<?php unset($__componentOriginal4bbb0a061de663e48c42cf83a926a23f); ?>
<?php endif; ?>
                                    <?php if($subscription->status === 'active' || $subscription->status === 'expired'): ?>
                                        <?php if (isset($component)) { $__componentOriginalb93ba26a658ff6e0007f90419915c4da = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb93ba26a658ff6e0007f90419915c4da = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table-actions.form','data' => ['action' => route('isp.subscriptions.renew', $subscription),'label' => 'Renew','danger' => false,'onsubmit' => 'confirmFormSubmit(event, {title: \'Renew subscription\', text: \'Renew this subscription for '.e($subscription->customer->full_name).'?\', icon: \'question\', confirmButtonText: \'Yes, renew\'}); return false;']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('table-actions.form'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.subscriptions.renew', $subscription)),'label' => 'Renew','danger' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false),'onsubmit' => 'confirmFormSubmit(event, {title: \'Renew subscription\', text: \'Renew this subscription for '.e($subscription->customer->full_name).'?\', icon: \'question\', confirmButtonText: \'Yes, renew\'}); return false;']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb93ba26a658ff6e0007f90419915c4da)): ?>
<?php $attributes = $__attributesOriginalb93ba26a658ff6e0007f90419915c4da; ?>
<?php unset($__attributesOriginalb93ba26a658ff6e0007f90419915c4da); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb93ba26a658ff6e0007f90419915c4da)): ?>
<?php $component = $__componentOriginalb93ba26a658ff6e0007f90419915c4da; ?>
<?php unset($__componentOriginalb93ba26a658ff6e0007f90419915c4da); ?>
<?php endif; ?>
                                    <?php endif; ?>
                                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399)): ?>
<?php $attributes = $__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399; ?>
<?php unset($__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399)): ?>
<?php $component = $__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399; ?>
<?php unset($__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399); ?>
<?php endif; ?>
                            </td>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal693da8371f81527050c5488b27378bc6)): ?>
<?php $attributes = $__attributesOriginal693da8371f81527050c5488b27378bc6; ?>
<?php unset($__attributesOriginal693da8371f81527050c5488b27378bc6); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal693da8371f81527050c5488b27378bc6)): ?>
<?php $component = $__componentOriginal693da8371f81527050c5488b27378bc6; ?>
<?php unset($__componentOriginal693da8371f81527050c5488b27378bc6); ?>
<?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc8463834ba515134d5c98b88e1a9dc03)): ?>
<?php $attributes = $__attributesOriginalc8463834ba515134d5c98b88e1a9dc03; ?>
<?php unset($__attributesOriginalc8463834ba515134d5c98b88e1a9dc03); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc8463834ba515134d5c98b88e1a9dc03)): ?>
<?php $component = $__componentOriginalc8463834ba515134d5c98b88e1a9dc03; ?>
<?php unset($__componentOriginalc8463834ba515134d5c98b88e1a9dc03); ?>
<?php endif; ?>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalff420112e83fb52a8cb508be690fe32b)): ?>
<?php $attributes = $__attributesOriginalff420112e83fb52a8cb508be690fe32b; ?>
<?php unset($__attributesOriginalff420112e83fb52a8cb508be690fe32b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalff420112e83fb52a8cb508be690fe32b)): ?>
<?php $component = $__componentOriginalff420112e83fb52a8cb508be690fe32b; ?>
<?php unset($__componentOriginalff420112e83fb52a8cb508be690fe32b); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\ispbilling\resources\views/isp/subscriptions/index.blade.php ENDPATH**/ ?>