@extends($redirect=='Fattening' ? 'Modules.Fattening.layouts.second_main' : 'Modules.Health.layouts.second_main') History -DairyCare @section('main-content')
@if($animal_card_v) @endif

Basic Info {{ $full_cow->tagid }}

@if($animal_card_v)
Tag ID:    {{ $full_cow->tagid }}
Pen ID:    {{ $full_cow->penid }}
Animal Type:    {{ $full_cow->animal_type }}
{{-- @if($full_cow->electronicid!="")--}}
Electronic Id:    {{ $full_cow->electronicid }}
{{-- @endif--}} {{-- @if($full_cow->calfname!="")--}}
Animal name:    {{ $full_cow->calfname }}
{{-- @endif--}}
Arrival Date:   01-Jan-1970 @if($check_purchase_animal==1) @endif
Birth date:     01-Jan-1970 @if($check_purchase_animal==1) @endif
Sex:     {{ $full_cow->sex }}
Breed Type:    {{ $full_cow->breed_type }}
{{$purchase_or_raised}}:    {{ $full_cow->company }}
Sub Category:    {{ $full_cow->sub_category }}
Status:    {{ $status }} @if($status_days!='') ({{$status_days}}) @endif
@if($last_insemination_date!='')
Last Service Dare:     {{ $last_insemination_date }}
Service Sire:     {{ $last_semen_used }}
@endif @if($days_carrying_calve!='')
D.C.C(Days Carrying Calf):     {{ $days_carrying_calve }}
Expected Calving Date:     {{ $exp_cal_date }}
@endif @if($custom_status)
Custom Status:   {{ $custom_status->status_name }} @if($custom_status->diff_days!='') ({{$custom_status->diff_days}}) @endif
@endif @if($cow_teats)
Cow Teats:    {{ $cow_teats->teats }} ({{$cow_teats->name}})
@endif @if($full_cow->sex=='Female') @if($animal_type=='c') @if($fresh_count!=0)
No of Calvings:    {{ $fresh_count }} @if($check_last_calving_edit==1) @endif
@else
No of Calvings:    N/A
@endif
Last Calving Date:    {{$convert_Freshningdate}} @if($check_last_calving_edit==1) @endif
@if($dim!='')
DIM:     {{$dim}}
@endif @endif @endif @if($father_tagid!='N/A')
Sire Tag Id:    {{ $father_tagid }} @if($check_purchase_animal==1) @endif
@endif @if($mother_tagid!='N/A')
Dam Tag Id:    {{ $mother_tagid }} @if($check_purchase_animal==1) @endif
@endif @if($check_purchase_animal==1)
Purchase Cost:    {{ $full_cow->price }} Rupees
@endif
Total Milk Given:    {{ $total_milk_given }} Liters
Current Weight:    {{ $current_weight }} Kg
@endif @if($animal_picture_v)
Choose File
No file chosen...
@endif
{{$full_cow->tagid }} Activity Report @if($redirect!='Fattening') Breed cycle @endif
@foreach($all_data as $dt) @if($dt['event']=="Abortion"||$dt['event']=="Removal") @else @endif @endforeach
Date Event Age Actions
Event
{{$e_date}}{!! $dt['event']!!}{!! $dt['event']!!}{{$dt['age']}} @if($dt['event']!="Custom Event") Refreshing... @endif @if($dt['event']=="Removal"||$dt['event']=="Dry"||$dt['event']=="Custom Event"||$dt['event']=="
Heat Service
") Saving... @endif {{----}} {{----}} {{--Saving. Hang tight!--}} {{----}}
Event Details
Pedigree  {{ $full_cow->tagid }}
Sire Dam Dam's Milk Avg
Parents {{$father_tagid}} {!!$mother_link_id!!} {{$mother_milk_avg}}
Grand Parents {{$grand_sire}} {!!$grand_mother!!} {{$grand_mother_milk_avg}}
Great Grand Parents {{$great_grand_sire }} {!!$great_grand_mother!!} {{$great_grand_mother_milk_avg}}

{{ $full_cow->tagid }}

Reproduction  {{ $full_cow->tagid }}
Particulars Result
Total Services {{$total_services}}
Total Services 21 days {{$total_service_21_days}}
Service Per Conception {{$services_per_conception}}
Average Days Calving to 1st Service {{$avg_days_calving_to_first_service}}
Average Days Calving to Conception {{$avg_days_calving_to_conception}}
No of Calvings {{$total_calvings}}
Abortions {{$total_abortions}}
Calving Interval {{$calving_interval}}
Age At First Service {{$age_at_first_service}}
Weight At First Service {{$weight_at_first_service}}
Age At First Conception {{$age_at_first_conceptions}}
Age At First Calving {{$age_at_first_calved}}
Production  {{ $full_cow->tagid }}
{{-- --}} {{-- --}}
Child Analysis  {{ $full_cow->tagid }}
Particulars Result
Total Calves {{$total_childs}}
Total Alive Birth {{$total_alive}}
Total Still Birth {{$total_stillbirth}}
Still Birth Ratio {{$still_birth_ratio}}
# Result
Total Alive Female {{$total_alive_females}}
Total Alive Male {{$total_alive_males}}
Female Ratio {{$female_percentage}}
Male Ratio {{$male_percentage}}
@foreach($child_info as $child) @if($child['tagid']!="Non Tag"&&$child['tagid']!="Still Birth") @else @endif @endforeach
Tagid Sex Birth Date Age Weight Sire Status
{{$child['tagid']}}{{$child['tagid']}}{{$child['sex']}} {{$child['date']}} {{$child['age']}} {{$child['weight']}} {{$child['fathertagid']}} {{$child['status']}}
Weight Gain/Loss  {{ $full_cow->tagid }}
@foreach($weights as $weight) @if($weight->gain>0) @elseif($weight->gain<0) @else @endif @if($weight->type==2) @elseif($weight->type==1) @else @endif @endforeach
# Date Age Weight Difference (Days) Gain/Loss (Kg) Actions
{{$weight->index}} {{$weight->date}} {{$weight->age}} {{$weight->weight}} {{$weight->diff}}{{$weight->gain}}{{$weight->gain}}{{$weight->gain}}

Pedigree

Genomic  {{ $full_cow->tagid }}
# Result
# Result
Dam
# Result
# Result
Sire
# Result
# Result
Profit & Loss  {{ $full_cow->tagid }}
@if(round(($total_income-$total_expense),2)>-1) @else @endif
# Amount
Total Milk Given {{ parseNumber($total_milk_given) }} Liters
Income From Milk {{parseNumber($milk_income)}}
Animal Sale Income {{parseNumber($sale_income)}}
Total Income {{parseNumber($total_income)}}
Purchase Expense {{parseNumber($purchase_expense)}}
Feed Expense {{$feed_expense}}
Medicine Expense {{$med_expense}}
Breed Expense {{$breed_expense}}
Other Expense 0
Total Expense {{parseNumber($total_expense)}}
Net Profit {{parseNumber(round(($total_income-$total_expense),2))}}
Net Profit {{parseNumber(round(($total_income-$total_expense),2))}}