⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
16f3d299a61de9a2a215b66f413b2b19.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Report')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('css'); ?> <link rel="stylesheet" href="<?php echo e(asset('assets/css/plugins/dragula.min.css')); ?>"> <?php $__env->stopPush(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Report')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-md-12"> <div class="p-3 card"> <ul class="nav nav-pills nav-fill" id="pills-tab" role="tablist"> <li class="nav-item" role="presentation"> <button class="nav-link active" id="pills-user-tab-1" data-bs-toggle="pill" data-bs-target="#pills-user-1" type="button"><?php echo e(__('General Report')); ?></button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="pills-user-tab-2" data-bs-toggle="pill" data-bs-target="#pills-user-2" type="button"><?php echo e(__('Staff Report')); ?></button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="pills-user-tab-3" data-bs-toggle="pill" data-bs-target="#pills-user-3" type="button"><?php echo e(__('Pipelines Report')); ?></button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="pills-user-tab-4" data-bs-toggle="pill" data-bs-target="#pills-user-4" type="button"><?php echo e(__('Clients Report')); ?></button> </li> </ul> </div> <div class="card"> <div class="card-body"> <div class="tab-content" id="pills-tabContent"> <div class="tab-pane fade show active" id="pills-user-1" role="tabpanel" aria-labelledby="pills-user-tab-1"> <div class="row"> <div class="col-md-6"> <div class="card"> <div class="panel_s"> <div class="panel-heading"> <h5 class="panel-title" style="padding-top:15px; padding-left:20px;"> <?php echo e(__('This Week Deals Conversions')); ?></h5> <hr> </div> <div class="panel-body"> <div id="deals-this-week" height="353" style="display: block; height: 315px;" data-color="primary" data-height="280"></div> </div> </div> </div> </div> <div class="col-md-6"> <div class="card"> <div class="panel_s"> <div class="panel-heading"> <h5 class="panel-title" style="padding-top:15px; padding-left:20px;"> <?php echo e(__('Sources Conversion')); ?></h5> <hr> </div> <div class="panel-body"> <div class="deals-sources-report" id="deals-sources-report" height="353" style="display: block;" data-color="primary" data-height="280"></div> </div> </div> </div> </div> <div class="col-md-12"> <div class="card"> <div class="panel_s"> <div class="panel-heading"> <h5 class="panel-title" style="padding-top:15px; padding-left:20px;"> <?php echo e(__('Monthly')); ?></h5> <hr> </div> <div class="panel-body"> <div class="row"> <div class="col-md-2 form-label" style="padding-top:15px; padding-left:30px;"> <select name="month" class="selectpicker form-control" id="selectmonth" data-none-selected-text="Nothing selected"> <option value="select month"><?php echo e(__('Select Month')); ?></option> <option value="1"><?php echo e(__('January')); ?></option> <option value="2"><?php echo e(__('February')); ?></option> <option value="3"><?php echo e(__('March')); ?></option> <option value="4"><?php echo e(__('April')); ?></option> <option value="5"><?php echo e(__('May')); ?></option> <option value="6"><?php echo e(__('June')); ?></option> <option value="7"><?php echo e(__('July')); ?></option> <option value="8"><?php echo e(__('August')); ?></option> <option value="9"><?php echo e(__('September')); ?></option> <option value="10"><?php echo e(__('October')); ?></option> <option value="11"><?php echo e(__('November')); ?></option> <option value="12"><?php echo e(__('December')); ?></option> </select> </div> </div> <div class="relative" style="max-height:400px;"> <div id="deals-monthly" data-color="primary" data-height="280"></div> </div> </div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="pills-user-2" role="tabpanel" aria-labelledby="pills-user-tab-2"> <div class="row"> <div class="col-md-12"> <div class="panel_s"> <div class="panel-body"> <div class="row"> <div class="col-md-4"> <?php echo e(Form::label('From_Date', __('From Date'), ['class' => 'col-form-label'])); ?> <?php echo e(Form::date('From_Date', null, ['class' => 'form-control from_date', 'id' => 'data_picker1'])); ?> <span id="fromDate" style="color: red;"></span> </div> <div class="col-md-4"> <?php echo e(Form::label('To_Date', __('To Date'), ['class' => 'col-form-label'])); ?> <?php echo e(Form::date('To_Date', null, ['class' => 'form-control to_date', 'id' => 'data_picker2'])); ?> <span id="toDate" style="color: red;"></span> </div> <div class="col-md-4" id="filter_type" style="padding-top : 38px;"> <button class="btn btn-primary label-margin generate_button"><?php echo e(__('Generate')); ?></button> </div> </div> <div id="deals-staff-report" height="400" style="display: block;" width="1100" data-color="primary" data-height="280"></div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="pills-user-3" role="tabpanel" aria-labelledby="pills-user-tab-3"> <h5><?php echo e(__('Pipelines Conversion')); ?></h5> <hr> <div class="row"> <div class="col-md-12"> <div class="panel_s"> <div class="panel-body"> <div id="deals-piplines-report" height="400" style="display: block;" width="1100" data-color="primary" data-height="280"></div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="pills-user-4" role="tabpanel" aria-labelledby="pills-user-tab-4"> <div class="row"> <div class="col-md-12"> <div class="panel_s"> <div class="panel-body"> <div class="row"> <div class="col-md-4"> <?php echo e(Form::label('from_date', __('From Date'), ['class' => 'col-form-label'])); ?> <?php echo e(Form::date('from_date', null, ['class' => 'form-control from_date1', 'id' => 'data_picker1'])); ?> <span id="fromDate1" style="color: red;"></span> </div> <div class="col-md-4"> <?php echo e(Form::label('to_date', __('To Date'), ['class' => 'col-form-label'])); ?> <?php echo e(Form::date('to_date', null, ['class' => 'form-control to_date1', 'id' => 'data_picker2'])); ?> <span id="toDate1" style="color: red;"></span> </div> <div class="col-md-4" id="filter_type" style="padding-top : 38px;"> <button class="btn btn-primary label-margin" id="generatebtn"><?php echo e(__('Generate')); ?></button> </div> </div> <div id="deals-clients-report" height="400" style="display: block;" width="1100" data-color="primary" data-height="280"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="<?php echo e(asset('assets/js/plugins/apexcharts.min.js')); ?>"></script> <script> $(document).ready(function() { $("#selectmonth").change(function() { var selectedVal = $(this).val() if (selectedVal == 'select month') { var selectedVal = null; } var start_month = $('.selectpicker').val(); $.ajax({ url: "<?php echo e(route('report.deal')); ?>", type: "get", data: { "start_month": start_month, "_token": "<?php echo e(csrf_token()); ?>", }, cache: false, success: function(data) { $("#deals-monthly").empty(); var chartBarOptions = { series: [{ name: 'Deal', data: data.data, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: data.name, title: { text: '<?php echo e(__('Deal Per Month')); ?>' } }, colors: ['#c53da9', '#c53da9'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-monthly"), chartBarOptions); arChart.render(); } }) }); }); $(".generate_button").click(function() { var from_date = $('.from_date').val(); if (from_date == '') { $("#fromDate").text("Please select date"); } else { $("#fromDate").empty(); } var to_date = $('.to_date').val(); if (to_date == '') { $("#toDate").text("Please select date"); } else { $("#toDate").empty(); } $.ajax({ url: "<?php echo e(route('report.deal')); ?>", type: "get", data: { "From_Date": from_date, "To_Date": to_date, "type": 'deal_staff_repport', "_token": "<?php echo e(csrf_token()); ?>", }, cache: false, success: function(data) { $("#deals-staff-report").empty(); var chartBarOptions = { series: [{ name: 'Deal', data: data.data, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: data.name, }, colors: ['#6fd944', '#6fd944'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-staff-report"), chartBarOptions); arChart.render(); } }) }); $("#generatebtn").click(function() { var from_date = $('.from_date1').val(); if (from_date == '') { $("#fromDate1").text("Please select date"); } else { $("#fromDate1").empty(); } var to_date = $('.to_date1').val(); if (to_date == '') { $("#toDate1").text("Please select date"); } else { $("#toDate1").empty(); } $.ajax({ url: "<?php echo e(route('report.deal')); ?>", type: "get", data: { "from_date": from_date, "to_date": to_date, "type": 'client_repport', "_token": "<?php echo e(csrf_token()); ?>", }, cache: false, success: function(data) { $("#deals-clients-report").empty(); var chartBarOptions = { series: [{ name: 'Deal', data: data.data, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: data.name, }, colors: ['#6fd944', '#6fd944'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-clients-report"), chartBarOptions); arChart.render(); } }) }); </script> <script> var options = { series: <?php echo json_encode($devicearray['data']); ?>, chart: { width: 400, type: 'pie', }, colors: ["#ff0000", "#0000ff", "#3cb371", "#ee82ee", "#ffa500", "#6a5acd", "#0288d1"], labels: <?php echo json_encode($devicearray['label']); ?>, responsive: [{ breakpoint: 480, options: { chart: { width: 200 }, legend: { position: 'bottom', } } }] }; var chart = new ApexCharts(document.querySelector("#deals-this-week"), options); chart.render(); (function() { var chartBarOptions = { series: [{ name: 'Source', data: <?php echo json_encode($dealsourceeData); ?>, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: <?php echo json_encode($dealsourceName); ?>, title: { text: '<?php echo e(__('Source')); ?>' } }, colors: ['#6fd944', '#6fd944'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-sources-report"), chartBarOptions); arChart.render(); })(); (function() { var chartBarOptions = { series: [{ name: 'Deal', data: <?php echo json_encode($data); ?>, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: <?php echo json_encode($labels); ?>, title: { text: '<?php echo e(__('Deal Per Month')); ?>' } }, colors: ['#c53da9', '#c53da9'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-monthly"), chartBarOptions); arChart.render(); })(); (function() { var chartBarOptions = { series: [{ name: 'Pipeline', data: <?php echo json_encode($dealpipelineeData); ?>, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: <?php echo json_encode($dealpipelineName); ?>, title: { text: '<?php echo e(__('Pipelines')); ?>' } }, yaxis: { title: { text: '<?php echo e(__('Deals')); ?>' } }, colors: ['#6fd944', '#6fd944'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-piplines-report"), chartBarOptions); arChart.render(); })(); (function() { var chartBarOptions = { series: [{ name: 'Deal', data: <?php echo json_encode($dealUserData); ?>, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: <?php echo json_encode($dealUserName); ?>, }, colors: ['#6fd944', '#6fd944'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-staff-report"), chartBarOptions); arChart.render(); })(); (function() { var chartBarOptions = { series: [{ name: 'Deal', data: <?php echo json_encode($dealClientData); ?>, }], chart: { height: 300, type: 'bar', dropShadow: { enabled: true, color: '#000', top: 18, left: 7, blur: 10, opacity: 0.2 }, toolbar: { show: false } }, dataLabels: { enabled: false }, stroke: { width: 2, curve: 'smooth' }, title: { text: '', align: 'left' }, xaxis: { categories: <?php echo json_encode($dealClientName); ?>, }, colors: ['#6fd944', '#6fd944'], grid: { strokeDashArray: 4, }, legend: { show: false, } }; var arChart = new ApexCharts(document.querySelector("#deals-clients-report"), chartBarOptions); arChart.render(); })(); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/Lead/src/Providers/../Resources/views/report/deal.blade.php ENDPATH**/ ?>