HEX
Server: LiteSpeed
System: Linux server334.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: richfield (1256)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/richfield/public_html/storage/framework/views/05434a8f066602bd9a0f5f473eefd1bc4191a4a1.php
<?php $__env->startSection('database-table-helper-buttons-template'); ?>
    <div>
        <div class="btn btn-success" @click="addNewColumn">+ <?php echo e(__('voyager::database.add_new_column')); ?></div>
        <div class="btn btn-success" @click="addTimestamps">+ <?php echo e(__('voyager::database.add_timestamps')); ?></div>
        <div class="btn btn-success" @click="addSoftDeletes">+ <?php echo e(__('voyager::database.add_softdeletes')); ?></div>
    </div>
<?php $__env->stopSection(); ?>

<script>
    Vue.component('database-table-helper-buttons', {
        template: `<?php echo $__env->yieldContent('database-table-helper-buttons-template'); ?>`,
        methods: {
            addColumn(column) {
                this.$emit('columnAdded', column);
            },
            makeColumn(options) {
                return $.extend({
                    name: '',
                    oldName: '',
                    type: getDbType('integer'),
                    length: null,
                    fixed: false,
                    unsigned: false,
                    autoincrement: false,
                    notnull: false,
                    default: null
                }, options);
            },
            addNewColumn() {
                this.addColumn(this.makeColumn());
            },
            addTimestamps() {
                this.addColumn(this.makeColumn({
                    name: 'created_at',
                    type: getDbType('timestamp')
                }));

                this.addColumn(this.makeColumn({
                    name: 'updated_at',
                    type: getDbType('timestamp')
                }));
            },
            addSoftDeletes() {
                this.addColumn(this.makeColumn({
                    name: 'deleted_at',
                    type: getDbType('timestamp')
                }));
            }
        }
    });
</script>
<?php /**PATH /media/alaatairelbarr/New Volume/work/rich-field/vendor/tcg/voyager/src/../resources/views/tools/database/vue-components/database-table-helper-buttons.blade.php ENDPATH**/ ?>