@extends('layouts.adminmaster') @section('styles') @endsection @section('content')
{{lang('Sl.No')}} | @cannot('Custom Notifications Delete')@endcannot @can('Custom Notifications Delete') | @endcan | {{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')}} |