@if ($resource != null) @if($resourceInfo->ticket->user_id == \Illuminate\Support\Facades\Auth::id() || in_array($resourceInfo->ticket->department_id,\Illuminate\Support\Facades\Auth::user()->departments->pluck('id')->toArray())) @if($resourceInfo->ticket->status != "Closed")
Ticket Info

@if ($resource != null)

@if($resourceInfo->channel == 'Facebook') @endif @if($resourceInfo->channel == 'Instagram') @endif @if($resourceInfo->channel == 'Twitter') @endif @if($resourceInfo->channel == 'Google') @endif @if($resourceInfo->channel == 'Whatsapp') @endif @if($resourceInfo->channel == 'Livechat') @endif @if($resourceInfo->channel == 'Email') @endif @if($resourceInfo->channel == 'Voice') @endif {{ $resourceInfo->channel }}

{{$status ? $status:'N/A'}}
@if($status == 'Redirect' || $status == 'Reopen') @foreach($categorylevels as $categorylevel)
@if($categorylevel->level == 1) {{!empty($category_array[$categorylevel->level]) ? \App\Models\Tenant\Category::where('id',$category_array[$categorylevel->level])->whereStatus(true)->first()->name : 'N/A' }} @else {{!empty($category_array[$categorylevel->level]) ? \App\Models\Tenant\Category::where('id',$category_array[$categorylevel->level])->whereStatus(true)->first()->name : 'N/A' }} @endif
@endforeach @if($input_field_modal) {{-- @if($status == 'Resolved' || $status == 'Reopen' || $status == 'Closed')--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- @else--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- @endif--}} @endif @endif @if($status == 'Forward')
@endif @if($status == 'Reassign')
{{-- --}}
@endif @if($status != null) @php $fields = \App\Models\Tenant\ActionField::where('status_type',$status)->orderBy('ordering','asc')->get(); @endphp @foreach($fields as $field) @php if ($field->required) { $ty = $field->type == 'email' ? '|email' : ''; $ty = $field->type == 'number' ? '|numeric' : ''; if (\Illuminate\Support\Str::slug($field->label) == 'mobile-number' || \Illuminate\Support\Str::slug($field->label) == 'phone-number' || \Illuminate\Support\Str::slug($field->label) == 'tel' || \Illuminate\Support\Str::slug($field->label) == 'telephone' || \Illuminate\Support\Str::slug($field->label) == 'mobile' || \Illuminate\Support\Str::slug($field->label) == 'phone') { $this->input_field_modal_check['input.' . \Illuminate\Support\Str::slug($field->label)] = 'required|regex:/^([0-9\s\-\+\(\)]*)$/|min:8|max:14'; }else { $this->input_field_modal_check['input.' . \Illuminate\Support\Str::slug($field->label)] = 'required' . $ty; } } @endphp
@if($field->type == 'select') {{isset($input[\Illuminate\Support\Str::slug($field->label)]) && $input[\Illuminate\Support\Str::slug($field->label)] != '' ? $input[\Illuminate\Support\Str::slug($field->label)]:'N/A'}}
@error('input.' . \Illuminate\Support\Str::slug($field->label)) @if('input.' . \Illuminate\Support\Str::slug($field->label) == 'mobile-number' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'phone-number' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'tel' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'telephone' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'mobile' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'phone' ) @else {{Str::replace('input.','',Str::replace('-',' ',$message))}} @endif @enderror @else @error('input.' . \Illuminate\Support\Str::slug($field->label)) @if('input.' . \Illuminate\Support\Str::slug($field->label) == 'mobile-number' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'phone-number' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'tel' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'telephone' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'mobile' || 'input.' . \Illuminate\Support\Str::slug($field->label) == 'phone' ) @else {{Str::replace('input.','',Str::replace('-',' ',$message))}} @endif @enderror @endif
@endforeach @endif @if(true) @if($status == 'Redirect' || $status == 'Resolved' || $status == 'Reopen' || $status == 'Closed')
@endif

@endif @endif
@endif @endif @endif