<div class="space-y-6">
    <?= message_box('success'); ?>
    <?= message_box('error'); ?>

    <div class="rounded-2xl border border-border bg-card shadow-sm">
        <div class="px-6 py-4 border-b border-border flex flex-col gap-1 md:flex-row md:items-center md:justify-between">
            <div>
                <h2 class="text-lg font-semibold text-foreground"><?= lang('award points') . ' ' . lang('settings') ?></h2>
                <p class="text-sm text-muted-foreground"><?= lang('settings') ?></p>
            </div>
        </div>
        <div class="p-6">
            <form action="<?= base_url() ?>admin/settings/save_awardpoint" enctype="multipart/form-data" method="post" class="space-y-6">
                <input type="hidden" name="settings" value="<?= $load_setting ?>">
                
                <div class="rounded-2xl border border-border bg-card shadow-sm !mt-0">
                    <div class="px-5 py-4 border-b border-border">
                        <h3 class="text-sm font-semibold text-foreground"><?= lang('Customer Award ') . ' ' . lang('Points') ?></h3>
                    </div>
                    <div class="p-5">
                        <div class="grid grid-cols-1 gap-4 md:grid-cols-2">
                            <?= form_input_group('client_spent_amount', lang('Each spent') . ' ' . lang('equal'), config_item('client_spent_amount'), 'text', true); ?>
                            <?= form_input_group('client_award_ponint', lang('award') . ' ' . lang('point'), config_item('client_award_ponint'), 'text', true); ?>
                        </div>
                    </div>
                </div>

                <div class="rounded-2xl border border-border bg-card shadow-sm">
                    <div class="px-5 py-4 border-b border-border">
                        <h3 class="text-sm font-semibold text-foreground"><?= lang('Staff  Award ') . ' ' . lang('Points') ?></h3>
                    </div>
                    <div class="p-5">
                        <div class="grid grid-cols-1 gap-4 md:grid-cols-2">
                            <?= form_input_group('staff_spent_amount', lang('Each spent') . ' ' . lang('equal'), config_item('staff_spent_amount'), 'text', true); ?>
                            <?= form_input_group('staff_award_ponint', lang('award') . ' ' . lang('point'), config_item('staff_award_ponint'), 'text', true); ?>
                        </div>
                    </div>
                </div>

                <div class="flex items-center justify-end gap-2">
                    <button type="submit" class="btn btn-sm btn-primary"><?= lang('save_changes') ?></button>
                </div>
            </form>
        </div>
    </div>
</div>
