Name Home Name Date Attending No Of Staff Total Cast Action @forelse($datas as $activity) {{ucwords($activity->getHomeActivitiesName($activity['home_activities_id']))}} {{ucwords($activity->getHomeName($activity['home_id']))}} @if(isset($activity['date_planned'])) {{date(config('choicescrm.date_format_forms'), strtotime($activity['date_planned']))}} @endif {{ucwords($activity->getallresident($activity['id']))}} {{$activity['staff_attending_no']}} {{$activity['total_cost']}} View @if(isset($activity['approved'])) @if($activity['approved']==1)

Approved

@elseif($activity['approved']==0)

Rejected

@endif @else ApprovedRejected @endif @empty No activity found @endforelse