<?php
    if (! function_exists('master_columns')) {
        function master_columns(string $module): array {
            return match ($module) {
                'branches' => ['Nama', 'Kode', 'WhatsApp', 'Status'],
                'categories' => ['Nama', 'Tipe', 'Status'],
                'customers' => ['Nama', 'HP', 'Cabang', 'Status'],
                'suppliers' => ['Nama', 'HP', 'Status'],
                'products' => ['Nama', 'SKU', 'Tipe', 'Harga', 'Bonus', 'Status'],
                'users' => ['Nama', 'Email', 'Cabang', 'Role', 'Status'],
                default => ['Nama'],
            };
        }
    }

    if (! function_exists('badge')) {
        function badge(string $text, string $tone = 'slate'): string {
            $classes = [
                'green' => 'bg-emerald-50 text-emerald-700 border-emerald-200',
                'red' => 'bg-red-50 text-red-700 border-red-200',
                'blue' => 'bg-sky-50 text-sky-700 border-sky-200',
                'slate' => 'bg-slate-50 text-slate-700 border-slate-200',
            ][$tone] ?? 'bg-slate-50 text-slate-700 border-slate-200';

            return '<span class="inline-flex rounded-full border px-2 py-0.5 text-xs '.$classes.'">'.e($text).'</span>';
        }
    }

    if (! function_exists('record_inactive')) {
        function record_inactive(string $module, mixed $record): bool {
            return $module === 'users' ? $record->status !== 'active' : $record->getAttribute('is_active') === false;
        }
    }

    if (! function_exists('master_values')) {
        function master_values(string $module, mixed $record): array {
            return match ($module) {
                'branches' => [e($record->name), e($record->code), e($record->whatsapp_number ?? '-'), badge($record->is_active ? 'Aktif' : 'Nonaktif', $record->is_active ? 'green' : 'red')],
                'categories' => [e($record->name), badge($record->type, 'blue'), badge($record->is_active ? 'Aktif' : 'Nonaktif', $record->is_active ? 'green' : 'red')],
                'customers' => [e($record->name), e($record->phone), e($record->branch?->name ?? '-'), badge($record->is_active ? 'Aktif' : 'Nonaktif', $record->is_active ? 'green' : 'red')],
                'suppliers' => [e($record->name), e($record->phone ?? '-'), badge($record->is_active ? 'Aktif' : 'Nonaktif', $record->is_active ? 'green' : 'red')],
                'products' => [e($record->name), e($record->sku), badge($record->type, 'blue'), 'Rp '.number_format($record->price, 0, ',', '.'), e($record->bonus_type).' '.e($record->bonus_value), badge($record->is_active ? 'Aktif' : 'Nonaktif', $record->is_active ? 'green' : 'red')],
                'users' => [e($record->name), e($record->email), e($record->branch?->name ?? '-'), badge($record->role, 'blue'), badge($record->status, $record->status === 'active' ? 'green' : 'red')],
                default => [e($record->name ?? $record->id)],
            };
        }
    }

    $editing = (bool) $editRecord;
    $formAction = $editing ? route('master.update', [$module, $editRecord->id]) : route('master.store', $module);
    $statusValue = fn ($key, $default = '') => old($key, $editRecord?->{$key} ?? $default);
?>

<?php if (isset($component)) { $__componentOriginale0f1cdd055772eb1d4a99981c240763e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale0f1cdd055772eb1d4a99981c240763e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin-layout','data' => ['title' => 'Master '.e($label).'','subtitle' => 'Kelola data '.e(strtolower($label)).' dengan validasi dan pembatasan cabang.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin-layout'); ?>
<?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' => 'Master '.e($label).'','subtitle' => 'Kelola data '.e(strtolower($label)).' dengan validasi dan pembatasan cabang.']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

    <div class="grid gap-5 xl:grid-cols-[420px_1fr]">
        <section class="rounded-lg bg-white p-5 shadow-sm">
            <div class="mb-4 flex items-center justify-between gap-3">
                <h2 class="font-semibold"><?php echo e($editing ? 'Edit Data' : 'Tambah Data'); ?></h2>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($editing): ?>
                    <a href="<?php echo e(route('master.index', $module)); ?>" class="text-sm text-slate-500 underline">Batal</a>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            <form method="post" action="<?php echo e($formAction); ?>" class="space-y-3">
                <?php echo csrf_field(); ?>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($editing): ?>
                    <?php echo method_field('put'); ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($module === 'branches'): ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'name','label' => 'Nama cabang','value' => $statusValue('name'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'name','label' => 'Nama cabang','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('name')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'code','label' => 'Kode cabang','value' => $statusValue('code'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'code','label' => 'Kode cabang','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('code')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal7bea101074ef20d67652d66657d387ea = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7bea101074ef20d67652d66657d387ea = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.textarea','data' => ['name' => 'address','label' => 'Alamat','value' => $statusValue('address')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.textarea'); ?>
<?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' => 'address','label' => 'Alamat','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('address'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7bea101074ef20d67652d66657d387ea)): ?>
<?php $attributes = $__attributesOriginal7bea101074ef20d67652d66657d387ea; ?>
<?php unset($__attributesOriginal7bea101074ef20d67652d66657d387ea); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7bea101074ef20d67652d66657d387ea)): ?>
<?php $component = $__componentOriginal7bea101074ef20d67652d66657d387ea; ?>
<?php unset($__componentOriginal7bea101074ef20d67652d66657d387ea); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'phone','label' => 'Telepon','value' => $statusValue('phone')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'phone','label' => 'Telepon','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('phone'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'whatsapp_number','label' => 'Nomor WhatsApp','value' => $statusValue('whatsapp_number')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'whatsapp_number','label' => 'Nomor WhatsApp','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('whatsapp_number'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.toggle','data' => ['name' => 'is_active','label' => 'Aktif','checked' => (bool) $statusValue('is_active', true)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.toggle'); ?>
<?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' => 'is_active','label' => 'Aktif','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute((bool) $statusValue('is_active', true))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $attributes = $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $component = $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($module === 'categories'): ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'name','label' => 'Nama kategori','value' => $statusValue('name'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'name','label' => 'Nama kategori','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('name')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'type','label' => 'Tipe','value' => $statusValue('type', 'service'),'options' => ['service' => 'Service', 'retail' => 'Retail']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'type','label' => 'Tipe','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('type', 'service')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['service' => 'Service', 'retail' => 'Retail'])]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.toggle','data' => ['name' => 'is_active','label' => 'Aktif','checked' => (bool) $statusValue('is_active', true)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.toggle'); ?>
<?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' => 'is_active','label' => 'Aktif','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute((bool) $statusValue('is_active', true))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $attributes = $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $component = $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($module === 'customers'): ?>
                    <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'branch_id','label' => 'Cabang','value' => $statusValue('branch_id'),'options' => $branches->pluck('name', 'id')->all(),'empty' => 'Lintas cabang / owner']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'branch_id','label' => 'Cabang','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('branch_id')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($branches->pluck('name', 'id')->all()),'empty' => 'Lintas cabang / owner']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'name','label' => 'Nama pelanggan','value' => $statusValue('name'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'name','label' => 'Nama pelanggan','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('name')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'phone','label' => 'Nomor HP','value' => $statusValue('phone'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'phone','label' => 'Nomor HP','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('phone')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal7bea101074ef20d67652d66657d387ea = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7bea101074ef20d67652d66657d387ea = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.textarea','data' => ['name' => 'address','label' => 'Alamat','value' => $statusValue('address')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.textarea'); ?>
<?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' => 'address','label' => 'Alamat','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('address'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7bea101074ef20d67652d66657d387ea)): ?>
<?php $attributes = $__attributesOriginal7bea101074ef20d67652d66657d387ea; ?>
<?php unset($__attributesOriginal7bea101074ef20d67652d66657d387ea); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7bea101074ef20d67652d66657d387ea)): ?>
<?php $component = $__componentOriginal7bea101074ef20d67652d66657d387ea; ?>
<?php unset($__componentOriginal7bea101074ef20d67652d66657d387ea); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.toggle','data' => ['name' => 'is_active','label' => 'Aktif','checked' => (bool) $statusValue('is_active', true)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.toggle'); ?>
<?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' => 'is_active','label' => 'Aktif','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute((bool) $statusValue('is_active', true))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $attributes = $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $component = $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($module === 'suppliers'): ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'name','label' => 'Nama supplier','value' => $statusValue('name'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'name','label' => 'Nama supplier','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('name')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'phone','label' => 'Telepon','value' => $statusValue('phone')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'phone','label' => 'Telepon','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('phone'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal7bea101074ef20d67652d66657d387ea = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7bea101074ef20d67652d66657d387ea = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.textarea','data' => ['name' => 'address','label' => 'Alamat','value' => $statusValue('address')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.textarea'); ?>
<?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' => 'address','label' => 'Alamat','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('address'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7bea101074ef20d67652d66657d387ea)): ?>
<?php $attributes = $__attributesOriginal7bea101074ef20d67652d66657d387ea; ?>
<?php unset($__attributesOriginal7bea101074ef20d67652d66657d387ea); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7bea101074ef20d67652d66657d387ea)): ?>
<?php $component = $__componentOriginal7bea101074ef20d67652d66657d387ea; ?>
<?php unset($__componentOriginal7bea101074ef20d67652d66657d387ea); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.toggle','data' => ['name' => 'is_active','label' => 'Aktif','checked' => (bool) $statusValue('is_active', true)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.toggle'); ?>
<?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' => 'is_active','label' => 'Aktif','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute((bool) $statusValue('is_active', true))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $attributes = $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $component = $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($module === 'products'): ?>
                    <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'category_id','label' => 'Kategori','value' => $statusValue('category_id'),'options' => $categories->mapWithKeys(fn ($category) => [$category->id => $category->name.' ('.$category->type.')'])->all()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'category_id','label' => 'Kategori','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('category_id')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($categories->mapWithKeys(fn ($category) => [$category->id => $category->name.' ('.$category->type.')'])->all())]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'name','label' => 'Nama produk / layanan','value' => $statusValue('name'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'name','label' => 'Nama produk / layanan','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('name')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'sku','label' => 'SKU','value' => $statusValue('sku'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'sku','label' => 'SKU','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('sku')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <div class="grid gap-3 md:grid-cols-2">
                        <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'type','label' => 'Tipe','value' => $statusValue('type', 'service'),'options' => ['service' => 'Service', 'retail' => 'Retail']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'type','label' => 'Tipe','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('type', 'service')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['service' => 'Service', 'retail' => 'Retail'])]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'unit','label' => 'Satuan','value' => $statusValue('unit', 'pcs'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'unit','label' => 'Satuan','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('unit', 'pcs')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    </div>
                    <div class="grid gap-3 md:grid-cols-2">
                        <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'price','label' => 'Harga jual','type' => 'number','value' => $statusValue('price', 0),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'price','label' => 'Harga jual','type' => 'number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('price', 0)),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'cost_price','label' => 'Harga modal','type' => 'number','value' => $statusValue('cost_price', 0)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'cost_price','label' => 'Harga modal','type' => 'number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('cost_price', 0))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    </div>
                    <div class="grid gap-3 md:grid-cols-2">
                        <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'minimum_stock','label' => 'Stok minimum','type' => 'number','value' => $statusValue('minimum_stock', 0)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'minimum_stock','label' => 'Stok minimum','type' => 'number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('minimum_stock', 0))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.toggle','data' => ['name' => 'track_stock','label' => 'Produk retail memengaruhi stok','checked' => (bool) $statusValue('track_stock', false)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.toggle'); ?>
<?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' => 'track_stock','label' => 'Produk retail memengaruhi stok','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute((bool) $statusValue('track_stock', false))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $attributes = $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $component = $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
                    </div>
                    <div class="grid gap-3 md:grid-cols-2">
                        <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'bonus_type','label' => 'Tipe bonus','value' => $statusValue('bonus_type', 'none'),'options' => ['none' => 'Tanpa bonus', 'percent' => 'Persen', 'nominal' => 'Nominal']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'bonus_type','label' => 'Tipe bonus','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('bonus_type', 'none')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['none' => 'Tanpa bonus', 'percent' => 'Persen', 'nominal' => 'Nominal'])]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'bonus_value','label' => 'Nilai bonus','type' => 'number','value' => $statusValue('bonus_value', 0)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'bonus_value','label' => 'Nilai bonus','type' => 'number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('bonus_value', 0))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    </div>
                    <div class="rounded-md border bg-slate-50 p-3">
                        <div class="text-sm font-medium">Stok awal / koreksi stok</div>
                        <div class="mt-3 grid gap-3 md:grid-cols-2">
                            <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'initial_branch_id','label' => 'Cabang stok','value' => old('initial_branch_id'),'options' => $branches->pluck('name', 'id')->all(),'empty' => 'Tidak diisi']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'initial_branch_id','label' => 'Cabang stok','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('initial_branch_id')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($branches->pluck('name', 'id')->all()),'empty' => 'Tidak diisi']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                            <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'initial_stock','label' => 'Jumlah stok','type' => 'number','value' => old('initial_stock', 0)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'initial_stock','label' => 'Jumlah stok','type' => 'number','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('initial_stock', 0))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                        </div>
                    </div>
                    <?php if (isset($component)) { $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.toggle','data' => ['name' => 'is_active','label' => 'Aktif','checked' => (bool) $statusValue('is_active', true)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.toggle'); ?>
<?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' => 'is_active','label' => 'Aktif','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute((bool) $statusValue('is_active', true))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $attributes = $__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__attributesOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc)): ?>
<?php $component = $__componentOriginalee556b899a6b48ca2d49b4df0722e4fc; ?>
<?php unset($__componentOriginalee556b899a6b48ca2d49b4df0722e4fc); ?>
<?php endif; ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($module === 'users'): ?>
                    <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'branch_id','label' => 'Cabang','value' => $statusValue('branch_id'),'options' => $branches->pluck('name', 'id')->all(),'empty' => 'Owner lintas cabang']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'branch_id','label' => 'Cabang','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('branch_id')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($branches->pluck('name', 'id')->all()),'empty' => 'Owner lintas cabang']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'name','label' => 'Nama user','value' => $statusValue('name'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'name','label' => 'Nama user','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('name')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'email','label' => 'Email','type' => 'email','value' => $statusValue('email'),'required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'email','label' => 'Email','type' => 'email','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('email')),'required' => true]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'phone','label' => 'Nomor HP','value' => $statusValue('phone')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'phone','label' => 'Nomor HP','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('phone'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                    <div class="grid gap-3 md:grid-cols-2">
                        <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'role','label' => 'Role','value' => $statusValue('role', 'kasir'),'options' => ['owner' => 'Owner', 'admin_cabang' => 'Admin Cabang', 'manager' => 'Manager', 'kasir' => 'Kasir']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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' => 'role','label' => 'Role','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('role', 'kasir')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['owner' => 'Owner', 'admin_cabang' => 'Admin Cabang', 'manager' => 'Manager', 'kasir' => 'Kasir'])]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.select','data' => ['name' => 'status','label' => 'Status','value' => $statusValue('status', 'active'),'options' => ['active' => 'Aktif', 'inactive' => 'Nonaktif']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.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','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($statusValue('status', 'active')),'options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['active' => 'Aktif', 'inactive' => 'Nonaktif'])]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $attributes = $__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__attributesOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa)): ?>
<?php $component = $__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa; ?>
<?php unset($__componentOriginal5c4d796b9262c7fe90fe74103bb75dfa); ?>
<?php endif; ?>
                    </div>
                    <?php if (isset($component)) { $__componentOriginal01bc97816ba4a46111453acfd18642c9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal01bc97816ba4a46111453acfd18642c9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.master.input','data' => ['name' => 'password','label' => $editing ? 'Password baru (opsional)' : 'Password','type' => 'password','value' => '','required' => ! $editing]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('master.input'); ?>
<?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' => 'password','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editing ? 'Password baru (opsional)' : 'Password'),'type' => 'password','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(''),'required' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(! $editing)]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $attributes = $__attributesOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__attributesOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal01bc97816ba4a46111453acfd18642c9)): ?>
<?php $component = $__componentOriginal01bc97816ba4a46111453acfd18642c9; ?>
<?php unset($__componentOriginal01bc97816ba4a46111453acfd18642c9); ?>
<?php endif; ?>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <button class="w-full rounded-md bg-slate-900 px-4 py-2 font-medium text-white"><?php echo e($editing ? 'Simpan Perubahan' : 'Tambah Data'); ?></button>
            </form>
        </section>

        <section>
            <form class="mb-4 flex gap-3 rounded-lg bg-white p-4 shadow-sm">
                <input name="q" value="<?php echo e(request('q')); ?>" placeholder="Cari <?php echo e(strtolower($label)); ?>" class="flex-1 rounded-md border px-3 py-2 text-sm">
                <button class="rounded-md border px-4 py-2 text-sm">Cari</button>
            </form>

            <div class="overflow-hidden rounded-lg bg-white shadow-sm">
                <table class="w-full text-left text-sm">
                    <thead class="bg-slate-100 text-slate-600">
                    <tr>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = master_columns($module); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                            <th class="p-3"><?php echo e($column); ?></th>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        <th class="p-3 text-right">Aksi</th>
                    </tr>
                    </thead>
                    <tbody class="divide-y">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $records; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $record): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <tr class="<?php echo e(record_inactive($module, $record) ? 'bg-slate-50 text-slate-400' : ''); ?>">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = master_values($module, $record); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                                <td class="p-3"><?php echo $value; ?></td>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                            <td class="p-3">
                                <div class="flex flex-wrap justify-end gap-2">
                                    <a class="rounded-md border px-3 py-1 text-xs" href="<?php echo e(route('master.index', [$module, 'edit' => $record->id, 'q' => request('q')])); ?>">Edit</a>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($module === 'customers'): ?>
                                        <form method="post" action="<?php echo e(route('master.customers.reset-pin', $record)); ?>">
                                            <?php echo csrf_field(); ?>
                                            <button class="rounded-md border px-3 py-1 text-xs">Reset PIN</button>
                                        </form>
                                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    <form method="post" action="<?php echo e(route('master.destroy', [$module, $record->id])); ?>" onsubmit="return confirm('Nonaktifkan data ini?')">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('delete'); ?>
                                        <button class="rounded-md border border-red-200 px-3 py-1 text-xs text-red-700">Nonaktif</button>
                                    </form>
                                </div>
                            </td>
                        </tr>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        <tr><td colspan="8" class="p-6 text-center text-slate-500">Belum ada data.</td></tr>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </tbody>
                </table>
            </div>

            <div class="mt-4"><?php echo e($records->links()); ?></div>
        </section>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale0f1cdd055772eb1d4a99981c240763e)): ?>
<?php $attributes = $__attributesOriginale0f1cdd055772eb1d4a99981c240763e; ?>
<?php unset($__attributesOriginale0f1cdd055772eb1d4a99981c240763e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale0f1cdd055772eb1d4a99981c240763e)): ?>
<?php $component = $__componentOriginale0f1cdd055772eb1d4a99981c240763e; ?>
<?php unset($__componentOriginale0f1cdd055772eb1d4a99981c240763e); ?>
<?php endif; ?>
<?php /**PATH /Users/dedehermawan/Dokumen/project/laundry/resources/views/master/index.blade.php ENDPATH**/ ?>