seeder-migration-issues

This commit is contained in:
RafficMohammed
2023-01-30 14:23:34 +05:30
parent 4d918c722f
commit 2ec836b447
3628 changed files with 116006 additions and 187 deletions

View File

@@ -404,7 +404,7 @@
<div class="text-center text-sm">{!! Lang::get('lang.close_ticket_workflow') !!}</div>
</div>
</div>
<?php \Event::fire('settings.ticket.view',[]); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('settings.ticket.view',[]); ?>
</div>
<!-- /.row -->
@@ -515,7 +515,7 @@
</div>
</div>
<?php \Event::fire('settings.system',[]); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('settings.system',[]); ?>
</div>
<!-- /.row -->
@@ -665,7 +665,7 @@
</div>
<!-- ./box-body -->
</div>
<?php \Event::fire('service.desk.admin.settings', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.admin.settings', []); ?>
@stop

View File

@@ -96,14 +96,14 @@
<?php
$replacetop = 0;
$replacetop = \Event::fire('service.desk.admin.topbar.replace', []);
$replacetop = \Illuminate\Support\Facades\Event::dispatch('service.desk.admin.topbar.replace', []);
if (count($replacetop) == 0) {
$replacetop = 0;
} else {
$replacetop = $replacetop[0];
}
$replaceside = 0;
$replaceside = \Event::fire('service.desk.admin.sidebar.replace', []);
$replaceside = \Illuminate\Support\Facades\Event::dispatch('service.desk.admin.sidebar.replace', []);
if (count($replaceside) == 0) {
$replaceside = 0;
} else {
@@ -137,7 +137,7 @@
</a>
</li>
@else
<?php \Event::fire('service.desk.admin.topbar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.admin.topbar', []); ?>
@endif
</ul>
@@ -691,7 +691,7 @@
</a>
</li>
@endif
<?php \Event::fire('service.desk.admin.sidebar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.admin.sidebar', []); ?>
</ul>
</nav>
</section>
@@ -709,7 +709,7 @@
</div><!-- /.col -->
<div class="col-sm-6">
{!! Breadcrumbs::renderIfExists() !!}
{!! Breadcrumbs::render() !!}
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->

View File

@@ -205,7 +205,7 @@ class="active"
</div>
<div class="row">
{{-- Event fire --}}
<?php Event::fire(new App\Events\ClientTicketForm()); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\ClientTicketForm()); ?>
</div>
</div>
</div>

View File

@@ -34,5 +34,5 @@
</div>
@endforeach
@include('themes.default1.agent.helpdesk.filters.tags')
<?php Event::fire(new App\Events\TicketDetailTable($TicketData)); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\TicketDetailTable($TicketData)); ?>

View File

@@ -133,7 +133,7 @@ if ($thread->title != "") {
<div class="mb-3">
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
<?php
Event::fire(new \App\Events\TicketBoxHeader($user->id));
\Illuminate\Support\Facades\Event::dispatch(new \App\Events\TicketBoxHeader($user->id));
if ($group->can_edit_ticket == 1) {
?>
@@ -149,7 +149,7 @@ if ($thread->title != "") {
@endif
<?php Event::fire('show-add-event-btn', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('show-add-event-btn', []); ?>
<a href="{{url('ticket/print/'.$tickets->id)}}" target="_blank" class="btn btn-default btn-tool btn-sm"><i class="fas fa-print" > </i> {!! Lang::get('lang.generate_pdf') !!}</a>
<div class="btn-group">
@@ -197,7 +197,7 @@ if ($thread->title != "") {
<?php if ($group->can_ban_email == 1) { ?>
<a href="#" class="dropdown-item" data-toggle="modal" data-target="#banemail"><i class="fas fa-ban" style="color:red;"></i> {!! Lang::get('lang.ban_email') !!}</a>
<?php
\Event::fire('ticket.details.more.list',[$tickets]);
\Illuminate\Support\Facades\Event::dispatch('ticket.details.more.list',[$tickets]);
}
?> </div>
</div>
@@ -305,13 +305,13 @@ if ($thread->title != "") {
<tr><td><b>{!! Lang::get('lang.help_topic') !!}:</b></td> <?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
<tr><td><b>{!! Lang::get('lang.last_message') !!}:</b></td> <td>{{Str::limit($username,30)}}</td></tr>
<tr><td><b>{!! Lang::get('lang.organization') !!}:</b></td> <td>{!!$LastResponse->getOrgWithLink()!!}</td></tr>
<?php Event::fire(new App\Events\TicketDetailTable($TicketData)); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\TicketDetailTable($TicketData)); ?>
</div>
</table>
</div>
</div>
<?php Event::fire('ticket.timeline.marble',[$TicketData]);?>
<?php \Illuminate\Support\Facades\Event::dispatch('ticket.timeline.marble',[$TicketData]);?>
<div id="gifshow" style="display:none" class="text-center">
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}">
</div> <!-- added 05/05/2016-->
@@ -329,7 +329,7 @@ if ($thread->title != "") {
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" href="#General" data-toggle="tab" style="color:#27C116;" id="aa"><i class="fa fa-reply-all"> </i> {!! Lang::get('lang.reply') !!}</a></li>
<li class="nav-item"><a class="nav-link" href="#Internal" data-toggle="tab" style="color:#0495FF;" id="bb"><i class="fa fa-file-text"> </i> {!! Lang::get('lang.internal_notes') !!}</a></li>
<?php Event::fire('timeline.tab.list',[$TicketData]); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('timeline.tab.list',[$TicketData]); ?>
<!-- <li><a href="#Reply" data-toggle="tab" style="color:orange;"><i class="fa fa-mail-forward" > </i> Forward</a></li> -->
</ul>
@@ -392,7 +392,7 @@ if ($thread->title != "") {
</div>
</div>
</div>
<?php Event::fire(new App\Events\TimeLineFormEvent($tickets)); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\TimeLineFormEvent($tickets)); ?>
<div class="form-group">
<div class="row">
<div class="col-md-2">
@@ -495,7 +495,7 @@ if ($thread->title != "") {
{!!Form::close()!!}
</div>
</div>
<?php Event::fire('timeline.tab.content',[$tickets]); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('timeline.tab.content',[$tickets]); ?>
</div>
</div>
@@ -759,7 +759,7 @@ if ($thread->title != "") {
<div class="timeline-footer" style="margin-bottom:-5px">
@if(!$conversation->is_internal)
@if($conversation->user_id != null)
<?php Event::fire(new App\Events\Timeline($conversation, $role)); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\Timeline($conversation, $role)); ?>
@endif
@endif
@@ -916,7 +916,7 @@ if ($thread->title != "") {
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<?php }
\Event::fire('ticket.detail.modelpopup',[$tickets]);
\Illuminate\Support\Facades\Event::dispatch('ticket.detail.modelpopup',[$tickets]);
?>
<!-- Change Owner Modal -->
<div class="modal fade" id="ChangeOwner">
@@ -1072,7 +1072,7 @@ if ($thread->title != "") {
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<?php \Event::fire('show-add-calendar-model', ['id' => $tickets->id])?>
<?php \Illuminate\Support\Facades\Event::dispatch('show-add-calendar-model', ['id' => $tickets->id])?>
<!-- add or search user Modal -->
<div class="modal fade" id="addccc">
<div class="modal-dialog">

View File

@@ -101,7 +101,7 @@
<div class="wrapper">
<?php
$replacetop = \Event::fire('service.desk.agent.topbar.replace', []);
$replacetop = \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.topbar.replace', []);
if (count($replacetop) == 0) {
$replacetop = 0;
@@ -109,7 +109,7 @@
$replacetop = $replacetop[0];
}
$replaceside = \Event::fire('service.desk.agent.sidebar.replace', []);
$replaceside = \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.sidebar.replace', []);
if (count($replaceside) == 0) {
$replaceside = 0;
@@ -166,10 +166,10 @@
</li>
@endif
<?php \Event::fire('calendar.topbar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('calendar.topbar', []); ?>
</ul>
@else
<?php \Event::fire('service.desk.agent.topbar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.topbar', []); ?>
@endif
<ul class="navbar-nav ml-auto">
@@ -490,7 +490,7 @@
@endforeach
@else
<?php \Event::fire('service.desk.agent.sidebar', []); ?>
<?php \Event::dispatch('service.desk.agent.sidebar', []); ?>
@endif
</ul>
</nav>
@@ -571,7 +571,7 @@
</nav>
</div>
@endif
<?php \Event::fire('service.desk.agent.topsubbar', []); ?>
<?php \Event::dispatch('service.desk.agent.topsubbar', []); ?>
<!-- /.tab-pane -->
</div>
<!-- Content Header (Page header) -->
@@ -584,7 +584,7 @@
@endif
<?php \Event::fire('service.desk.agent.topsubbar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.topsubbar', []); ?>
</div>
</div>
</div>
@@ -597,7 +597,7 @@
</div><!-- /.col -->
<div class="col-sm-6">
{!! Breadcrumbs::renderIfExists() !!}
{!! Breadcrumbs::render() !!}
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
@@ -806,8 +806,8 @@
</script>
<script>
</script>
<?php Event::fire('show.calendar.script', []); ?>
<?php Event::fire('load-calendar-scripts', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('show.calendar.script', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('load-calendar-scripts', []); ?>
@yield('FooterInclude')
</body>
</html>

View File

@@ -66,7 +66,7 @@
}
$replacetop = 0;
$replacetop = \Event::fire('service.desk.agent.topbar.replace', []);
$replacetop = \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.topbar.replace', []);
if (count($replacetop) == 0) {
$replacetop = 0;
@@ -74,7 +74,7 @@
$replacetop = $replacetop[0];
}
$replaceside = 0;
$replaceside = \Event::fire('service.desk.agent.sidebar.replace', []);
$replaceside = \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.sidebar.replace', []);
if (count($replaceside) == 0) {
$replaceside = 0;
@@ -105,10 +105,10 @@
@if(Auth::user()->role == 'admin')
<li @yield('Report')><a href="{{URL::route('report.index')}}" onclick="clickReport(event);">{!! Lang::get('lang.report') !!}</a></li>
@endif
<?php \Event::fire('calendar.topbar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('calendar.topbar', []); ?>
</ul>
@else
<?php \Event::fire('service.desk.agent.topbar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.topbar', []); ?>
@endif
<?php $noti = \App\Model\helpdesk\Notification\UserNotification::where('user_id', '=', Auth::user()->id)->where('is_read', '0')->get(); ?>
<ul class="nav navbar-nav navbar-right">
@@ -388,7 +388,7 @@
}
?>
@else
<?php \Event::fire('service.desk.agent.sidebar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.sidebar', []); ?>
@endif
</ul>
</section>
@@ -444,13 +444,13 @@
</div>
@endif
@endif
<?php \Event::fire('service.desk.agent.topsubbar', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('service.desk.agent.topsubbar', []); ?>
</div>
</div>
</div>
<section class="content-header">
@yield('PageHeader')
{!! Breadcrumbs::renderIfExists() !!}
{!! Breadcrumbs::render() !!}
</section>
<!-- Main content -->
<section class="content">
@@ -613,8 +613,8 @@
});
</script>-->
<?php Event::fire('show.calendar.script', []); ?>
<?php Event::fire('load-calendar-scripts', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('show.calendar.script', []); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('load-calendar-scripts', []); ?>
@yield('FooterInclude')
</body>
</html>

View File

@@ -389,7 +389,7 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', \Cryp
@if(!$conversation->is_internal)
@if($conversation->user_id != null)
<?php Event::fire(new App\Events\Timeline($conversation, $role, $user)); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\Timeline($conversation, $role, $user)); ?>
@endif
@endif
<?php

View File

@@ -212,7 +212,7 @@ class = "nav-item active"
{!! Lang::get('lang.max') !!}. {!! $max_size_in_actual !!}
</div>
{{-- Event fire --}}
<?php Event::fire(new App\Events\ClientTicketForm()); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\ClientTicketForm()); ?>
<div class="col-md-12" id="response"> </div>
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}"> </div>
<div class="col-md-12 form-group">

View File

@@ -499,7 +499,7 @@ $data = $ConvDate[0];
</div>
<div class="timeline-footer" style="margin-bottom:-5px">
@if(!$conversation->is_internal)
<?php Event::fire(new App\Events\Timeline($conversation,$role,$user)); ?>
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\Timeline($conversation,$role,$user)); ?>
@endif
<?php
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->get();

View File

@@ -251,7 +251,7 @@
<div id="login-form" class="{{$loginFormClass}}">
<div class="row">
<div class="col-md-12">
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
{!! Form::open(['route' => 'post.login']) !!}
@if(Session::has('errors'))
@if(Session::has('check'))
<?php goto b; ?>
@@ -270,7 +270,7 @@
</div>
<div class="form-group has-feedback @if(isset($errors)) {!! $errors->has('password') ? 'has-error' : '' !!} @endif">
{!! Form::password('password',['placeholder'=>Lang::get('lang.password'),'class' => 'form-control']) !!}
<?php \Event::fire('auth.login.form'); ?>
<?php \Illuminate\Support\Facades\Event::dispatch('auth.login.form'); ?>
<a href="{{url('password/email')}}" style="font-size: .8em" class="pull-left">{!! Lang::get('lang.forgot_password') !!}</a>
</div>
<div class="form-group pull-left">
@@ -297,7 +297,7 @@
</nav>
<div id="header-search" class="site-search clearfix"><!-- #header-search -->
{!!Form::open(['method'=>'get','action'=>'Client\kb\UserController@search','class'=>'search-form clearfix'])!!}
{!!Form::open(['route' => 'client.search','class'=>'search-form clearfix'])!!}
<div class="form-border" style="z-index: 0;width: 80%;">
<div class="form-inline ">
<div class="form-group input-group">

View File

@@ -202,7 +202,7 @@
</nav>
<div id="header-search" class="site-search clearfix"><!-- #header-search -->
{!!Form::open(['method'=>'get','action'=>'Client\kb\UserController@search','class'=>'search-form clearfix'])!!}
{!!Form::open(['route'=>'client.search','class'=>'search-form clearfix'])!!}
<div class="form-border" style="z-index: 0;">
<div class="form-inline ">
<div class="form-group input-group" style="width: 88%;">

View File

@@ -217,7 +217,7 @@ active
<td>
<div class="side-by-side clearfix moveleft">
<?php
$path = base_path('resources/lang');
$path = base_path('lang');
$values = scandir($path);
$values = array_slice($values, 2);
$show = [];

View File

@@ -38,14 +38,16 @@ active
<h2>{!! Lang::get('lang.next_step') !!}</h2>
<ul>
@if(\Event::fire('helpdesk.apply.whitelabel'))
<li class="setup-product"><a class="button button-primary button-large" href="{!! url('auth/login') !!}" style="float: none; text-align: center; font-size: 24px; padding: 15px; line-height: 1;">{!! Lang::get('lang.login_to_helpdesk') !!}</a>
<li class="setup-product"><a class="button button-primary button-large" href="{!! url('auth/login') !!}" style="float: none; text-align: center; font-size: 24px; padding: 15px; line-height: 1;">{!! Lang::get('lang.login_to_faveo') !!}</a>
</li>
@else
{{-- @if(\Illuminate\Support\Facades\Event::dispatch('helpdesk.apply.whitelabel'))--}}
{{-- <li class="setup-product"><a class="button button-primary button-large" href="{!! url('auth/login') !!}" style="float: none; text-align: center; font-size: 24px; padding: 15px; line-height: 1;">{!! Lang::get('lang.login_to_helpdesk') !!}</a>--}}
{{-- </li>--}}
{{-- @else--}}
<li class="setup-product"><a class="button button-primary button-large" href="{!! url('auth/login') !!}" style="float: none; text-align: center; font-size: 24px; padding: 15px; line-height: 1;">{!! Lang::get('lang.login_to_faveo') !!}</a>
</li>
@endif
{{-- <li class="setup-product"><a class="button button-primary button-large" href="{!! url('auth/login') !!}" style="float: none; text-align: center; font-size: 24px; padding: 15px; line-height: 1;">{!! Lang::get('lang.login_to_faveo') !!}</a>--}}
{{-- </li>--}}
{{-- @endif--}}

View File

@@ -82,7 +82,7 @@
<li><a href="#" class="collapsed" data-toggle="collapse" data-target="#login-form">Login <i class="sub-indicator fa fa-chevron-circle-down fa-fw text-muted"></i></a></li>
</ul><!-- .navbar-login -->
<div id="login-form" class="login-form collapse fade clearfix">
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
{!! Form::open(['route' => 'post.login']) !!}
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::text('email',null,['placeholder'=>'Email','class' => 'form-control']) !!}

View File

@@ -7,7 +7,7 @@
<div class="login-box-body">
<p class="login-box-msg">Sign in to start your session</p>
<!-- form open -->
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
{!! Form::open(['route' => 'post.login']) !!}
<!-- Email -->
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">