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

In-Progress Jobs

{{-- --}} @foreach($inProgressEstimation as $estimation) @php $services = App\Models\EstimationService::with('service')->where('estimation_id', $estimation->id)->get(); @endphp @if($estimation->user) @else @endif {{-- --}} @if($services->count() > 1) @else @endif @endforeach
Job Title User NameDateProgress Status Action Daily Logs Services
@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->created_at->format('n/j/Y') ?? ''}} {{$estimation->status ?? ''}} View all daily logs View All Services {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @foreach($services as $service)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endforeach--}} {{-- --}} {{--
ServiceStatusAction
{{$service->service->title}}{{$service->status}}--}} {{-- --}} {{--
--}}
Single Service
@endsection @push('script') @endpush