@extends('website.layouts.default') @push('css') @endpush @section('content')

Assign Cow To Staffs

Assign Cow To Staffs List

Assign →

Check for specific date

Today Search

Assigning data for {{ $date->format('d M Y') }}

@forelse ($assignCowToStaffs as $assignCowToStaff) @empty

No data found

@endforelse @include('website.includes.delete_modal')
# Staff Cow (Feeding Time, bath Time) Action
{{ $loop->index + 1 }} {{ $assignCowToStaff->user->name }}

Cow

@foreach ($assignCowToStaff->assignLists as $list) @if ($list->type == 1) {{ $list->cow->name }} ( Feed: @include('website.pages.assign_to_staff.includes.time-show', [ 'staff_id' => $assignCowToStaff->id, 'cow_id' => $list->cow->id, 'column_name' => 'cow_id', 'table_type' => 1, 'data_type' => 'feeding_time', ]) , Bath: @include('website.pages.assign_to_staff.includes.time-show', [ 'staff_id' => $assignCowToStaff->id, 'cow_id' => $list->cow->id, 'column_name' => 'cow_id', 'table_type' => 1, 'data_type' => 'bath_time', ]) ) @endif @endforeach

Bull

@foreach ($assignCowToStaff->assignLists as $list) @if ($list->type == 2) {{ $list->bull->name }} ( Feed: @include('website.pages.assign_to_staff.includes.time-show', [ 'staff_id' => $assignCowToStaff->id, 'cow_id' => $list->bull->id, 'column_name' => 'bull_id', 'table_type' => 2, 'data_type' => 'feeding_time', ]) , Bath: @include('website.pages.assign_to_staff.includes.time-show', [ 'staff_id' => $assignCowToStaff->id, 'cow_id' => $list->bull->id, 'column_name' => 'bull_id', 'table_type' => 2, 'data_type' => 'bath_time', ]) ) @endif @endforeach

Calf

@foreach ($assignCowToStaff->assignLists as $list) @if ($list->type == 3) {{ $list->calf->name }} ( Feed: @include('website.pages.assign_to_staff.includes.time-show', [ 'staff_id' => $assignCowToStaff->id, 'cow_id' => $list->calf->id, 'column_name' => 'calf_id', 'table_type' => 3, 'data_type' => 'feeding_time', ]) , Bath: @include('website.pages.assign_to_staff.includes.time-show', [ 'staff_id' => $assignCowToStaff->id, 'cow_id' => $list->calf->id, 'column_name' => 'calf_id', 'table_type' => 3, 'data_type' => 'bath_time', ]) ) @endif @endforeach
{{-- --}}
{{-- {{ $assignCowToStaffs->onEachSide(5)->links() }} --}}
@endsection @push('scripts') @endpush