@if(Auth::guard('agent')->user()) Token: @if($notification['data']['action_type'] =='Open') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type'] =='Start') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type'] =='Finish') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type'] =='Close') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type']=='Reopen') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type']=="Comment") #{{$notification['data']['ticket']['ticket_number']}} @endif
@if($notification['data']['action_type'] =='Open') Your token has been created by SAMS GLOBAL. @endif @if($notification['data']['action_type'] =='Start') Your token has started. @endif @if($notification['data']['action_type'] =='Finish') Your token has fixed. @endif @if($notification['data']['action_type'] =='Close') Your token has close. @endif @if($notification['data']['action_type']=='Reopen') Your token has reopen. @endif @if($notification['data']['action_type']=="Comment") A comment in this token. @endif
{{ date('d M Y',strtotime($notification->created_at)) }}, {{ date('H:i A',strtotime($notification->created_at)) }}
@elseif(Auth::guard('franchise')->user()) Token: @if($notification['data']['action_type'] =='Start') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type'] =='Finish') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type'] =='Close') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type']=='Reopen') #{{$notification['data']['ticket']['ticket_number']}} @endif @if($notification['data']['action_type']=="Comment") #{{$notification['data']['ticket']['ticket_number']}} @endif
@if($notification['data']['action_type'] =='Start') Your token has started. @endif @if($notification['data']['action_type'] =='Finish') Your token has fixed. @endif @if($notification['data']['action_type'] =='Close') Your token has close. @endif @if($notification['data']['action_type']=='Reopen') Your token has reopen. @endif @if($notification['data']['action_type']=="Comment") A comment in this token. @endif
{{ date('d M Y',strtotime($notification->created_at)) }}, {{ date('H:i A',strtotime($notification->created_at)) }}
@elseif(Auth::guard('admin')->user()) Token: #{{$notification['data']['ticket']['ticket_number']}}
@if($notification['data']['action_type'] =='Open' && $notification['data']['ticket']['creator_franchise_id'] !='') @php $company_name = model('Company')::where('id',$notification['data']['ticket']['company_id'])->select('name')->first(); @endphp @if($company_name) {{ $notification['data']['addedBy']['name'] }} created this token for {{ $company_name['name'] }}. @endif @elseif($notification['data']['action_type'] =='Open') @php $company_name = model('Company')::where('id',$notification['data']['ticket']['company_id'])->select('name')->first(); @endphp @if($company_name) {{ $notification['data']['addedBy']['name'] }} from {{ $company_name['name'] }} has been created this token. @else {{ $notification['data']['addedBy']['name'] }} has been created this token. @endif @endif @if($notification['data']['action_type'] =='Assigned') {{ $notification['data']['addedBy']['name'] }} assigned you in this token. @endif @if($notification['data']['action_type'] =='Start') {{ $notification['data']['addedBy']['name'] }} started this token. @endif @if($notification['data']['action_type'] =='Finish') {{ $notification['data']['addedBy']['name'] }} fixed this token. @endif @if($notification['data']['action_type'] =='Close') {{ $notification['data']['addedBy']['name'] }} closed this token. @endif @if($notification['data']['action_type']=="Reopen") {{ $notification['data']['addedBy']['name'] }} reopened this token. @endif @if($notification['data']['action_type']=="Comment") {{ $notification['data']['addedBy']['name'] }} commented on this token. @endif
{{ date('d M Y',strtotime($notification->created_at)) }}, {{ date('H:i A',strtotime($notification->created_at)) }}
@endif