Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ledger.corals.io/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ledger.corals.io/storage/framework/views/c910cac48a58b1b9b449ee8ec92394b8017583e0.php
<?php $__env->startComponent('components.box'); ?>
    <form>
        <div class="row">
            <div class="col-md-2">
                <?php echo CoralsForm::select('date_options', 'Corals::attributes.status', trans('Ledger::attributes.account.date_options'),true,request()->get('date_options','current_month')); ?>

            </div>
            <div class="col-md-2">
                <?php echo CoralsForm::date('start_date', 'Ledger::attributes.record.start_date',false,request()->get('start_date',now()->startOfMonth())); ?>

            </div>
            <div class="col-md-2">
                <?php echo CoralsForm::date('end_date', 'Ledger::attributes.record.end_date',false,request()->get('end_date',now()->endOfMonth())); ?>

            </div>
            <div class="col-md-3">
                <?php echo CoralsForm::radio('currency','Ledger::attributes.record.currency',true,config('ledger.supported_currencies'), request()->get('currency')); ?>

            </div>
            <div class="col-md-3">
                <?php echo CoralsForm::button('Search', ['class'=>'btn btn-success','inline-form'=>true],'submit'); ?>

            </div>
        </div>
    </form>
<?php echo $__env->renderComponent(); ?>

<?php $__env->startPush('partial_js'); ?>
    <script>

        $("#date_options").change(function () {
            let $option = document.getElementById('date_options').value;
            let $start_date = document.getElementById('start_date');
            let $end_date = document.getElementById('end_date');

            switch ($option) {
                case 'previous_month' :
                    $start_date.value = moment().subtract(1, 'months').startOf('month').format("YYYY-MM-DD");
                    $end_date.value = moment().subtract(1, 'months').endOf('month').format("YYYY-MM-DD");
                    break;
                case 'current_month':
                    $start_date.value = moment().startOf('month').format("YYYY-MM-DD");
                    $end_date.value = moment().endOf('month').format("YYYY-MM-DD");
                    break;
                case 'previous_year':
                    $start_date.value = moment().subtract(1, 'years').startOf('year').format("YYYY-MM-DD");
                    $end_date.value = moment().subtract(1, 'years').endOf('year').format("YYYY-MM-DD");
                    break;
                case 'previous_year_to_day':
                    $start_date.value = moment().subtract(1, 'years').startOf('year').format("YYYY-MM-DD");
                    $end_date.value = moment().format("YYYY-MM-DD");
                    break;
                case 'current_year':
                    $start_date.value = moment().startOf('year').format("YYYY-MM-DD");
                    $end_date.value = moment().endOf('year').format("YYYY-MM-DD");
                    break;
                case 'custom':
                    $start_date.value = null;
                    $end_date.value = null;
                    break;
                default:
                    $start_date.value = moment().startOf('month').format("YYYY-MM-DD");
                    $end_date.value = moment().endOf('month').format("YYYY-MM-DD");
            }

            if ($option !== 'custom') {
                $(this).closest('form').submit();
            }
        });
    </script>
<?php $__env->stopPush(); ?>
<?php /**PATH /home/corals/ledger.corals.io/Corals/modules/Ledger/resources/views/partials/DateForm.blade.php ENDPATH**/ ?>

Spamworldpro Mini