@extends('layouts.master') @section('title', 'Agro Pro - Timeline') @section('content')
{{$farm->farm_name}}
@if($farm_user->user_type == 'owner' || $farm_user->user_type == 'admin')

Farm Setup

Unlock the power of Agro Pro, complete your farm's setup.

{{$setup_completion}}%
@if($shed_count === 0 AND ($farm->farm_type === 'MIXED' OR $farm->farm_type === 'LIVESTOCK')) Create Animal House Click to Create first Animal House
{{----}}
@else @endif @if($livestock_list_count === 0 AND ($farm->farm_type === 'MIXED' OR $farm->farm_type === 'LIVESTOCK')) Create Animal List Click to Add Animal to the Livestock List
{{----}}
@else @endif @if($field_count === 0 AND ($farm->farm_type === 'MIXED' OR $farm->farm_type === 'CROP')) Create Planting Area Click to Create first Planting Area
@else @endif @if($crop_list_count === 0 AND ($farm->farm_type === 'MIXED' OR $farm->farm_type === 'CROP')) Create Crop List Click to Add Plant to the Crop List
{{----}}
@else @endif @if($store_count === 0 AND ($farm->farm_type === 'MIXED' OR $farm->farm_type === 'CROP' OR $farm->farm_type === 'LIVESTOCK')) Create Storage House Click to Create first Storage House
{{----}}
@else @endif
@php $job_dates = $jobs->pluck("job_log_created_at")->unique()->toArray() @endphp @foreach($job_dates as $job_date) {{ \Carbon\Carbon::parse ($job_date)->isoFormat('dddd, Do MMMM, YYYY')}}
@foreach($jobs as $job_items) @if($job_date == $job_items->job_log_created_at) {{$job_items->job_name}} {{$job_items->job_count}} {{$job_items->job_desc}} Job(s) @endif @endforeach
@endforeach

Congratulations!

You have successfully completed the initial
Farm Setup
.

You can share and do the following jobs:
Add Livestock, Add Inventory, Plant Crop and many more
...

@elseif($farm_user->user_type == 'member')
@php $job_dates = $user_jobs->pluck("job_log_created_at")->unique()->toArray() @endphp @foreach($job_dates as $job_date) {{ \Carbon\Carbon::parse ($job_date)->isoFormat('dddd, Do MMMM, YYYY')}}
@foreach($user_jobs as $job_items) @if($job_date == $job_items->job_log_created_at) {{$job_items->job_name}} {{$job_items->job_count}} {{$job_items->job_desc}} Job(s) @endif @endforeach
@endforeach

Congratulations!

You have successfully completed the initial
Farm Setup
.

You can share and do the following jobs:
Add Livestock, Add Inventory, Plant Crop and many more
...

@endif
@csrf
@csrf
@csrf
@csrf
@csrf
@endsection @section('footer-links')

No internet connection detected

You are back online

@endsection