@include('partials.breadcrumbs')
@include('layouts.crmnov')

@if(!empty($id)) @foreach($homes as $home) @if($home['id']==$id){{$home['name']}}@endif @endforeach @else All Homes @endif

Maintenance Request

@if($role == 'admin' || ((isset($perm['home']) && ((isset($perm['home'][$id]) && ($perm['home'][$id]==1)) || ($perm['home']['bulk']==1))) && $role != 'visitor' && $role != 'tradesman')) @if(!empty($id)) Add New @else Add New @endif @endif
{{-- {{ dd($role) }} --}} @if($role !== 'tradesman' && Auth::user()->isTradesman() === false)
@endif
@if($role=='tradesman') @endif @forelse($datalist as $maintenance) @if($role=='tradesman') @endif @empty @endforelse
Priority Level Home Requested Date Description Trade Type Status Action
@if($maintenance['priority_level']==2) High @elseif($maintenance['priority_level']==1) Medium @else Low @endif {{$maintenance->homename['name']}} {{date('Ymd', strtotime($maintenance['created_at']))}} @if(isset($maintenance['created_at'])) {{date(config('choicescrm.date_format_forms'), strtotime($maintenance['created_at']))}} @endif {{substr($maintenance['description'], 0, 80)}} @if(strlen($maintenance['description']) > 80)..@endif {{$maintenance['tradesmancategory']['name']}} @if($maintenance['status']==0) @elseif($maintenance['status']==1) Accepted @elseif($maintenance['status']==2) Work In Progress @elseif($maintenance['status']==3) Work Completed @elseif($maintenance['status']==4) Completed and awaiting sign off @elseif($maintenance['status']==5) Signed off @elseif($maintenance['status']==6) Rejected @else Working @endif
No record found