@extends('layouts.contractor-app') @section('content')

To-Do Jobs

@foreach($todoEstimation as $estimation) @php $services = App\Models\EstimationService::with('service')->where('estimation_id', $estimation->id)->get(); @endphp @if($estimation->user) @else @endif @endforeach
Job Title User Name Date Status Action
@if($estimation->services->count() > 1 || $estimation->others != null) Multiple @elseif($estimation->services->count() == 1) img{{$estimation->services->first()->title ?? ''}} @endif {{$estimation->user->name ?? ''}}{{$estimation->first_name .' '. $estimation->last_name ?? ''}}{{$estimation->start_date ?? ''}} {{$estimation->status ?? ''}}
@endsection