@extends('layouts.home_layout') @php $pageTitle = "Cattle Wise Weight Record"; @endphp @section('title', $pageTitle) @section('style') @endsection @section('content') @php // dd($list); @endphp

{{$pageTitle}}

@include('common.print_css') @php $fullColspan = 6; $partner_id = request()->get('partner_id'); $cooperative_id = request()->get('cooperative_id'); $group_id = request()->get('group_id'); $farmer_id = request()->get('farmer_id'); $animal_type_id = request()->get('animal_type_id'); $cattle_gender_id = request()->get('cattle_gender_id'); $livestock_breed_id = request()->get('cattle_gender_id'); $division_id = request()->get('division_id'); $district_id = request()->get('district_id'); $upazilla_id = request()->get('upazilla_id'); $union_id = request()->get('union_id'); $village_id = request()->get('village_id'); $f_date = request()->get('f_date'); $t_date = request()->get('t_date'); $firstColspan = 2; $lastColspan = ($fullColspan - $firstColspan); $animalNameColspan = 2; @endphp @if ($reportInfo['partners']) @endif @if ($reportInfo['cooperative']) @endif @if ($reportInfo['group']) @endif @if ($reportInfo['farmer']) @endif @if ($reportInfo['animal_type']) @endif @if ($reportInfo['livestock_breed']) @endif @if ($reportInfo['cattle_gender']) @endif @if ($reportInfo['division']) @endif @if ($reportInfo['district']) @endif @if ($reportInfo['upazilla']) @endif @if ($reportInfo['union']) @endif @if ($reportInfo['village']) @endif @if ($list) @php $i = 1; $weight_record = json_decode($weight_record); $totalFeedGiven = 0; @endphp @foreach ($list as $key => $v) @php $i = 1; $weight_record_arr = array_values(array_filter($weight_record, function($wr) use($v) { return $wr->cattle_id == $v->cattle_id; })); @endphp @if ($weight_record_arr) @foreach ($weight_record_arr as $wrv) @endforeach @endif @endforeach @endif

{{$pageTitle}}

Partner Name {{$reportInfo['partners']->partner_name_en}} {{$reportInfo['partners']->partner_code ? "[{$reportInfo['partners']->partner_code}]" : ''}}
Cooperative Name {{$reportInfo['cooperative']->cp_name_en}} {{$reportInfo['cooperative']->cp_code ? "[{$reportInfo['cooperative']->cp_code}]" : ''}}
Farmer Group Name {{$reportInfo['group']->group_name_en}} {{$reportInfo['group']->group_code ? "[{$reportInfo['group']->group_code}]" : ''}}
Farmer Name {{$reportInfo['farmer']->farmer_name_en}} {{$reportInfo['farmer']->farmer_code ? "[{$reportInfo['farmer']->farmer_code}]" : ''}}
Animal Type Name {{$reportInfo['animal_type']->type_name}}
Livestock Breed Name {{$reportInfo['livestock_breed']->breed_name_en}}
Cattle Gender {{$reportInfo['cattle_gender']->gender_name}}
Division Name {{$reportInfo['division']->name}}
District Name {{$reportInfo['district']->name}}
Upazila Name {{$reportInfo['upazilla']->name}}
Union Name {{$reportInfo['union']->name}}
Village Name {{$reportInfo['village']->en_name}}
Reporting Period {{$reportingPeriod}}
Reporting Date {{date('d-M-Y')}}
Animal ID Cattle Name Initial Weight
{{$v->id_prefix ? $v->id_prefix.' - ' : ''}}{{$v->cattle_id_no}} {{$v->cattle_name_en}} {{number_format($v->cattle_weight, 3)}}
# Date Body Length (X Ins) Chest Round (Y Ins) Manual Weight Scale Weight
{{$i++}} {{date('d-M-Y', strtotime($wrv->entry_date))}} {{($wrv->body_length != 0) ? number_format($wrv->body_length, 0) : ''}} {{($wrv->chest_length != 0) ? number_format($wrv->chest_length, 0) : ''}} {{($wrv->weight != 0) ? number_format($wrv->weight, 3) : ''}} @php $scale_weight = 0; if($wrv->scale_weight) { $scale_weight = $wrv->scale_weight; } else { $scale_weight = $wrv->weight; } @endphp {{($scale_weight != 0) ? number_format($scale_weight, 3) : ''}}
{{-- Modal Start id="modal" --}} {{-- Modal End --}}
@endsection @section('script') @endsection