@extends('layouts.adminmaster') @section('styles') @endsection @section('content')

{{lang('Custom Notifications List')}}

@can('Custom Notifications Delete') @endcan @cannot('Custom Notifications Delete') @endcannot @can('Custom Notifications Delete') @endcan @php $i = 1; @endphp @foreach($customnotify as $customnotifys) @endforeach
{{lang('Sl.No')}} {{lang('Name')}} {{lang('User Type')}} {{lang('Subject')}} {{lang('Actions')}}
{{$i++}} @if(Auth::user()->can('Project Delete')) @else @endif @foreach($customnotifys->touser()->paginate(1) as $submail) @if($submail->touser != null) @if( $customnotifys->touser()->paginate(1) > '1') Multiple Employees @else {{Str::limit($submail->touser->name, '40') }} {{(Str::limit($submail->touser->getRoleNames()[0], '40'))}} @endif @endif @if($submail->tocust_id != null) @if($customnotifys->touser()->paginate(1) > '1') Multiple Customers @else {{Str::limit($submail->tocust->username, '40')}} @endif @endif @endforeach @foreach($customnotifys->touser()->get() as $submail) @if($submail->touser != null) @if($loop->first) Employees @endif @endif @if($submail->tocust_id != null) @if($submail->tocust->userType == 'Customer') @if($loop->first) Customer @endif @endif @endif @endforeach {{Str::limit($customnotifys->mailsubject, '40')}}
@if(Auth::user()->can('Custom Notifications View')) @else ~ @endif @if(Auth::user()->can('Custom Notifications Delete')) @else ~ @endif
@endsection @section('scripts') @endsection @section('modal') @include('admin.custom-notification.model') @endsection