<?php $__env->startSection('title', __('nav.main_accounts')); ?>
<?php $__env->startSection('content'); ?>
<div class="alert alert-info"><?php echo e(__('messages.accounts_for_companies')); ?></div>
<div class="d-flex justify-content-between mb-3"><h1 class="h4"><?php echo e(__('nav.main_accounts')); ?></h1><?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounts.create')): ?><a class="btn btn-success" href="<?php echo e(route('main-accounts.create')); ?>"><?php echo e(__('messages.create')); ?></a><?php endif; ?></div>
<form class="mb-3"><input class="form-control" name="q" value="<?php echo e(request('q')); ?>" placeholder="<?php echo e(__('messages.search')); ?>"></form>
<div class="card"><table class="table mb-0"><thead><tr><th><?php echo e(__('messages.name')); ?></th><th><?php echo e(__('messages.code')); ?></th><th><?php echo e(__('messages.company')); ?></th><th></th></tr></thead>
<tbody><?php $__empty_1 = true; $__currentLoopData = $accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td><a href="<?php echo e(route('main-accounts.show',$a)); ?>"><?php echo e($a->name); ?></a></td><td><?php echo e($a->code); ?></td><td><?php echo e($a->telecomCompany?->name); ?></td><td><a href="<?php echo e(route('main-accounts.edit',$a)); ?>"><?php echo e(__('messages.edit')); ?></a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="4"><?php echo e(__('messages.no_results')); ?></td></tr><?php endif; ?></tbody></table>
<?php echo $__env->make('partials.pagination', ['paginator' => $accounts], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laragon\www\esim\resources\views/accounts/main/index.blade.php ENDPATH**/ ?>