@extends('website.layouts.default') @push('css') @endpush @section('content')
| Calf | Calf age in month | Vaccine | Vaccine at first age | Dose Count | Dose Type | Date | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $calf->name }} {{ $calf->id }} | {{ $calf_age_in_month }} | {{ $vaccine->vaccine_name }} | {{ $vaccine->age_of_first_dose }} | {{ getNextDose($calf->id, $vaccine->id)->vaccine_count }} | {{ str_ordinal(getNextDose($calf->id, $vaccine->id)->vaccine_count + 1) }} | {{ Carbon\Carbon::parse(getNextDose($calf->id, $vaccine->id)->next_date)->format('d M y') }} | @endif @else {{-- FIRST DOSE HERE --}} @if ($calf_age_in_month >= $vaccine->age_of_first_dose){{ $calf->name }} {{ $calf->id }} | {{ $calf_age_in_month }} | {{ $vaccine->vaccine_name }} | {{ $vaccine->age_of_first_dose }} | First Dose | First Dose | @endif @endif