<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <div class="py-6">
        <div class="max-w-8xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
                <div class="p-6 text-gray-900">
                    <div class="flex justify-between items-center mb-6 border-b-2 border-slate-100 pb-4">
                        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
                            <?php echo e(__('Billing')); ?>

                        </h2>
                        <div class="flex items-center">
                            <?php if(auth()->user()->isAdmin()): ?>
                                <a href="<?php echo e(route('billing.download')); ?>" class="inline-flex items-center px-4 py-2 bg-orange-400 text-white dark:bg-gray-200 border border-transparent rounded-md font-semibold text-xs rounded uppercase">
                                    <?php echo e(__('Download')); ?>

                                </a>

                                <a href="<?php echo e(route('billing.create')); ?>" class="ml-2 inline-flex items-center px-4 py-2 bg-gray-800 dark:bg-gray-200 border border-transparent rounded-md font-semibold text-xs text-white rounded uppercase">
                                    <?php echo e(__('Create')); ?>

                                </a>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div>
                        <?php if(auth()->user()->isAdmin()): ?>
                            <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('billing-table', [])->html();
} elseif ($_instance->childHasBeenRendered('36F7bTl')) {
    $componentId = $_instance->getRenderedChildComponentId('36F7bTl');
    $componentTag = $_instance->getRenderedChildComponentTagName('36F7bTl');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('36F7bTl');
} else {
    $response = \Livewire\Livewire::mount('billing-table', []);
    $html = $response->html();
    $_instance->logRenderedChild('36F7bTl', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                        <?php endif; ?>
                        <?php if(auth()->user()->isUser()): ?>
                            <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('user-billing-table', [])->html();
} elseif ($_instance->childHasBeenRendered('0EmHBxP')) {
    $componentId = $_instance->getRenderedChildComponentId('0EmHBxP');
    $componentTag = $_instance->getRenderedChildComponentTagName('0EmHBxP');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('0EmHBxP');
} else {
    $response = \Livewire\Livewire::mount('user-billing-table', []);
    $html = $response->html();
    $_instance->logRenderedChild('0EmHBxP', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH /Users/ahsan/Documents/Personal/Projects/Betternet_App_V4.1/betternet4.1/resources/views/billing/index.blade.php ENDPATH**/ ?>