<div>
    <div class="row">
        <div class="col-lg-4">
            <div class="card">
                <div class="card-body">
                    <form wire:submit.prevent="<?php echo e($aksi); ?>">
                        <div class="mb-3">
                            <label for="nama" class="form-label">Nama <span class="text-danger">*</span></label>
                            <input type="text" name="nama" id="nama" wire:model="nama" class="form-control">
                            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['nama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-danger error-validation">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!--[if ENDBLOCK]><![endif]-->
                        </div>
                        <div class="d-flex">
                            <div wire:loading.remove wire:target="reset_fields">
                                <button type="button" wire:click="reset_fields"
                                        class="btn btn-danger me-2">Reset</button>
                            </div>
                            <div wire:loading wire:target="reset_fields">
                                <button class="btn btn-danger me-2" type="button" disabled="">Loading..
                                </button>
                            </div>
                            <div wire:loading.remove wire:target="<?php echo e($aksi); ?>">
                                <button type="submit" class="btn btn-success me-2">Simpan</button>
                            </div>
                            <div wire:loading wire:target="<?php echo e($aksi); ?>">
                                <button class="btn btn-success me-2" type="button" disabled="">Loading..
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="col-lg-8">
            <div class="card">
                <div class="card-body p-0">
                    <div class="table-responsive">
                        <table class="table table-striped-columns mb-0 text-center">
                            <thead class="table-light">
                                <tr>
                                    <th width="1%">No.</th>
                                    <th class="min-w-250px">Nama</th>
                                    <th width="5%">Aksi</th>
                                </tr>
                            </thead>
                            <tbody>
                                <!--[if BLOCK]><![endif]--><?php $__empty_1 = true; $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $res): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td><?php echo e($i + 1); ?>.</td>
                                        <td><?php echo e($res->username); ?></td>
                                        <td>
                                            <div wire:key="kategori-post_<?php echo e($res->id); ?>">
                                                <div wire:loading.remove
                                                     wire:target="refresh_feeds(<?php echo e($res->id); ?>)">
                                                    <div class="btn-group">
                                                        <button class="btn btn-primary btn-sm dropdown-toggle"
                                                                type="button" data-bs-toggle="dropdown"
                                                                aria-haspopup="true" aria-expanded="false">
                                                            Aksi
                                                        </button>
                                                        <div class="dropdown-menu">

                                                            <!--[if BLOCK]><![endif]--><?php if(!$res->to_access_token): ?>
                                                                <a class="dropdown-item"
                                                                   href="https://api.instagram.com/oauth/authorize?client_id=<?php echo e(env('INSTAGRAM_CLIENT_ID')); ?>&redirect_uri=<?php echo e(env('INSTAGRAM_REDIRECT_URI')); ?>&scope=user_profile,user_media&response_type=code&state=<?php echo e($res->id); ?>">Autentikasi</a>
                                                            <?php else: ?>
                                                                <a class="dropdown-item" href="javascript:void(0)"
                                                                   wire:click="refresh_feeds(<?php echo e($res->id); ?>)">Refresh
                                                                    Feed</a>
                                                            <?php endif; ?> <!--[if ENDBLOCK]><![endif]-->
                                                            <a class="dropdown-item" href="javascript:void(0)"
                                                               wire:click="confirm(<?php echo e($res->id); ?>)">Hapus</a>

                                                        </div>
                                                    </div>
                                                </div>
                                                <div wire:loading wire:target="refresh_feeds(<?php echo e($res->id); ?>)">
                                                    <button class="btn btn-icon btn-sm btn-success me-2" type="button"
                                                            disabled="">
                                                        <span class="spinner-border spinner-border-sm" role="status"
                                                              aria-hidden="true"></span>
                                                        <span class="visually-hidden">Loading...</span>
                                                    </button>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="3"><strong>No Data</strong></td>
                                    </tr>
                                <?php endif; ?> <!--[if ENDBLOCK]><![endif]-->
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /Users/aptika/Workspace/webprofilev2/resources/views/livewire/pengaturan/instagram.blade.php ENDPATH**/ ?>