<form action="<?php echo e(route('cattles.store')); ?>" method="post" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <ul class="nav nav-underline mb-3" id="pills-tab" role="tablist">
        <li class="nav-item me-2" role="presentation">
            <button class="nav-link active" id="pills-home-tab" data-bs-toggle="pill"
                    data-target="#general-information" next="not"
                    type="button" role="tab" aria-controls="pills-home"
                    aria-selected="true"><?php echo e(__('messages.general_info')); ?>

            </button>
        </li>
        <li class="nav-item me-2" role="presentation">
            <button class="nav-link" id="pills-profile-tab" data-bs-toggle="pill"
                    data-target="#parents-details" next="not"
                    type="button" role="tab" aria-controls="pills-profile"
                    aria-selected="false"><?php echo e(__('messages.parent_details')); ?>

            </button>
        </li>
        <li class="nav-item" role="presentation">
            <button class="nav-link" id="pills-contact-tab" data-bs-toggle="pill"
                    data-target="#breeding" next="not"
                    type="button" role="tab" aria-controls="pills-contact" aria-selected="false">
                <?php echo e(__('messages.breeding')); ?>

            </button>
        </li>
    </ul>
    <div class="tab-content" id="pills-tabContent">
        <div class="tab-pane fade show active" id="general-information" role="tabpanel"
             aria-labelledby="pills-home-tab"
             tabindex="0">
            <div class="row">
                <div class="col-md-6">
                    <label for="organization" class="form-label"><?php echo e(__('messages.organization_name')); ?><span
                            class="text-danger">*</span></label>
                    <select class="form-select requiredField" name="organization_id"
                            id="organization" required>
                        <option disabled value="" selected>Organization Name Select</option>
                        <?php $__currentLoopData = $organizations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option
                                value="<?php echo e($key); ?>" <?php echo e(old('organization_id') === $key ? 'selected': ''); ?>><?php echo e($item); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
            <div class="row mt-3">
                <div class="col-md-6">
                    <label for="species" class="form-label"><?php echo e(__('messages.species_name')); ?> <span
                            class="text-danger">*</span></label>
                    <select class="form-select requiredField" name="species" onChange="changeSpecies();"
                            id="species">
                        <option disabled value="" selected>Species Name Select</option>
                        <option value="Cow" <?php echo e(old('species') === 'Cow' ? 'selected': ''); ?>>Cow</option>
                        <option value="Buffalo" <?php echo e(old('species') === 'Buffalo' ? 'selected': ''); ?>>
                            Buffalo
                        </option>
                    </select>
                </div>
            </div>
            <div class="row mt-3">
                <div class="col-md-6">
                    <label for="animal_name" class="form-label"><?php echo e(__('messages.animal_name')); ?></label>
                    <input type="text" name="animal_name" value="<?php echo e(old('animal_name')); ?>"
                           class="form-control" id="animal_name">
                </div>
                <div class="col-md-6">
                    <label for="sex" class="form-label"><?php echo e(__('messages.sex')); ?> <span
                            class="text-danger">*</span></label>
                    <select class="form-select requiredField" name="sex" id="sex">
                        <option disabled value="" selected>Select Gender</option>
                        <option value="male" <?php echo e(old('sex') === 'male' ? 'selected': ''); ?>>Male</option>
                        <option value="female" <?php echo e(old('sex') === 'female' ? 'selected': ''); ?>>Female
                        </option>
                    </select>
                </div>
            </div>
            <div class="row mt-3">

                <div class="col-md-6">
                    <label class="form-label" for="birth_date"><?php echo e(__('messages.birth_date')); ?> <span class="text-danger">*</span></label>
                    <input type="text" class="form-control custom-date-format"
                           name="birth_date" id="birth_date" value="<?php echo e(old('birth_date')); ?>" placeholder="Pick cattle birth date" required/>
                </div>
                <div class="col-md-6">
                    <div class="row">
                        <div class="col-md-5">
                            <label class="form-label"><?php echo e(__('messages.birth_year')); ?> <span
                                    class="text-danger">*</span></label>
                            <div class="input-group">
                                <input type="number"
                                       class="form-control requiredField"
                                       id="birth_date_year"
                                       value="<?php echo e(old('birth_date')); ?>">
                            </div>
                        </div>
                        <div class="col-md-4">
                            <label for="birth_date_month" class="form-label"><?php echo e(__('messages.month')); ?> <span
                                    class="text-danger">*</span></label>
                            <div class="input-group">
                                <input onkeyup="changeBirthDate()" type="number"
                                       class="form-control requiredField"
                                       id="birth_date_month"
                                       max="12"
                                       value="<?php echo e(old('birth_date')); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <label for="birth_date_day" class="form-label"><?php echo e(__('messages.day')); ?> <span
                                    class="text-danger">*</span></label>
                            <div class="input-group">
                                <input onkeyup="changeBirthDate()" type="number"
                                       class="form-control requiredField"
                                       id="birth_date_day"
                                       value="<?php echo e(old('birth_date')); ?>">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row mt-3">
                <div class="col-md-6">
                    <label class="form-label" for="cattlestatus"><?php echo e(__('messages.status')); ?> <span
                            class="text-danger">*</span></label>
                    <select onChange="changeStatus();" class="form-control requiredField"
                            name="status" id="cattlestatus">
                        <option value="">Select status</option>
                        <option value="calf" <?php echo e(old('status') === 'calf' ? 'selected': ''); ?>>Calf</option>
                        <option value="heifer" <?php echo e(old('status') === 'heifer' ? 'selected': ''); ?>>Heifer
                        </option>
                        <option value="bull" <?php echo e(old('status') === 'bull' ? 'selected': ''); ?>>Bull</option>
                        <option
                            value="reproduction_stage" <?php echo e(old('status') === 'reproduction_stage' ? 'selected': ''); ?>>
                            Reproduction Stage
                        </option>
                        <option
                            value="open_unbred" <?php echo e(old('status') === 'open_unbred' ? 'selected': ''); ?>>
                            Open Unbred
                        </option>
                        <option value="open_bred" <?php echo e(old('status') === 'open_bred' ? 'selected': ''); ?>>
                            Open Bred
                        </option>
                        <option value="pregnant" <?php echo e(old('status') === 'pregnant' ? 'selected': ''); ?>>
                            Pregnant
                        </option>
                        <option value="milking" <?php echo e(old('status') === 'milking' ? 'selected': ''); ?>>
                            Milking
                        </option>
                        <option
                            value="pregnant_milking" <?php echo e(old('status') === 'pregnant_milking' ? 'selected': ''); ?>>
                            Pregnant Milking
                        </option>
                        <option
                            value="pregnant_dry" <?php echo e(old('status') === 'pregnant_dry' ? 'selected': ''); ?>>
                            Pregnant Dry
                        </option>
                        <option value="dry" <?php echo e(old('status') === 'dry' ? 'selected': ''); ?>>Dry</option>
                    </select>
                </div>
                <div class="col-md-6">
                    <label for="birth_weight" class="form-label"><?php echo e(__('messages.birth_weight')); ?></label>
                    <input type="number" name="birth_weight" value="<?php echo e(old('birth_weight')); ?>"
                           class="form-control" id="birth_weight">
                </div>
            </div>
            <div class="row mt-3">
                <div class="col-md-6">
                    <label for="current_weight" class="form-label"><?php echo e(__('messages.current_weight')); ?> <span
                            class="text-danger">*</span></label>
                    <input type="number" class="form-control requiredField" name="current_weight"
                           value="<?php echo e(old('current_weight')); ?>" id="current_weight" required>
                </div>
                <div class="col-md-6">
                    <label for="teeth" class="form-label"><?php echo e(__('messages.teeth')); ?></label>
                    <input type="number" class="form-control" value="<?php echo e(old('teeth')); ?>" name="teeth"
                           id="teeth">
                </div>
            </div>
            <div class="row mt-3">
                <div class="col-md-6">
                    <label for="cattle_image" class="form-label"><?php echo e(__('messages.cattle_images')); ?></label>
                    <input class="form-control" type="file" name="cattle_image[]"
                           id="cattle_image"
                           multiple="multiple">
                </div>
                <div class="col-md-6">
                    <label for="source" class="form-label"><?php echo e(__('messages.source')); ?></label>
                    <select type="number" class="form-control " name="source" id="source" required>
                        <option value="organizationbred" <?php echo e(old('source') === 'organizationbred' ? 'selected': ''); ?>>
                            <?php echo e(__('messages.organizationberd')); ?>

                        </option>
                        <option value="purchased" <?php echo e(old('source') === 'purchased' ? 'selected': ''); ?>>
                            Purchased
                        </option>
                    </select>
                </div>
            </div>
            <div class="row mt-3">
                <div class="col-md-6 d-none" id="p_date">
                    <div class="form-group">
                        <label for="purchase_date" class="form-label"><?php echo e(__('messages.purchase_date')); ?></label>
                        <input type="text" class="form-control" name="purchase_date"
                               id="purchase_date" placeholder="<?php echo e(__('messages.purchase_date')); ?>"/>
                    </div>
                </div>
                <div class="col-md-6 d-none" id="purchase_rate">
                    <div class="form-group">
                        <label for="purchase_rate" class="form-label"><?php echo e(__('messages.purchase_rate')); ?></label>
                        <input type="number" min="0" class="form-control" name="purchase_rate"
                               id="purchase_rate"
                               placeholder="<?php echo e(__('messages.purchase_rate')); ?>"/>
                    </div>
                </div>
            </div>
            <div class="mt-3 d-flex justify-content-end">
                <button type="button" class="btn  me-2" data-bs-dismiss="modal"
                        style="background: #EAECF0;"><?php echo e(__('messages.close')); ?>

                </button>
                <button type="button" class="btn btn-primary next-button" target="#parents-details"
                ><?php echo e(__('messages.next')); ?>

                </button>
            </div>
        </div>
        <div class="tab-pane fade" id="parents-details" role="tabpanel"
             aria-labelledby="pills-profile-tab" tabindex="0">
            <div class="row">
                <div class="mt-4 d-flex justify-content-between">
                    <div>
                        <button type="button" class="btn prev-button" target="#general-information"
                                style="background-color:  #EAECF0;">
                            <?php echo e(__('messages.previous')); ?>

                        </button>
                    </div>
                    <div>
                        <button type="button" class="btn  me-2" data-bs-dismiss="modal"
                                style="background: #EAECF0;"><?php echo e(__('messages.close')); ?>

                        </button>
                        <button type="button" class="btn btn-primary next-button" target="#breeding">
                            <?php echo e(__('messages.next')); ?>

                        </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="tab-pane fade" id="breeding" role="tabpanel"
             aria-labelledby="pills-contact-tab" tabindex="0">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="no_of_calving" class="form-label"><?php echo e(__('messages.number_of_calving')); ?></label>
                        <input type="number" class="form-control male_selected" name="no_of_calving"
                               id="no_of_calving" value="<?php echo e(old('no_of_calving')); ?>">
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="total_milk_yield" class="form-label"><?php echo e(__('messages.total_milk_yield')); ?></label>
                        <input type="number" class="form-control male_selected" name="total_milk_yield"
                               id="total_milk_yield" value="<?php echo e(old('total_milk_yield')); ?>">
                    </div>
                </div>
                <div class="col-md-6 mt-3">
                    <div class="form-group">
                        <label for="average_milk_yield"
                               class="form-label"><?php echo e(__('messages.average_milk_yield')); ?></label>
                        <input type="number" class="form-control male_selected" name="average_milk_yield"
                               id="average_milk_yield" value="<?php echo e(old('average_milk_yield')); ?>">
                    </div>
                </div>
            </div>
            <div class="row mt-3">
                <div class="col-md-12">
                    <div class="row">
                        <div class="form-group">
                            <p class="form-label"><?php echo e(__('messages.status')); ?></p>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input custom-control male_selected2" type="radio"
                                       name="breeding_status" id="none" value="none">
                                <label class="form-label" for="none"><?php echo e(__('messages.none')); ?></label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input custom-control male_selected2" type="radio"
                                       name="breeding_status" value="milking"
                                       id="milking">
                                <label class="form-label" for="milking"><?php echo e(__('messages.milking')); ?></label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input custom-control male_selected2" type="radio"
                                       name="breeding_status" value="dry"
                                       id="dry">
                                <label class="form-label" for="dry"><?php echo e(__('messages.dry')); ?></label>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-4 d-none" id="milking1">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="organization" class="form-label">
                                    <input class="form-check-input male_selected2"
                                           type="radio" name="milk" checked
                                           value="milk_date"> <?php echo e(__('messages.last_calving_date')); ?>

                                </label> <span class="text-danger"> *</span>
                                <input type="text" class="form-control male_selected mt-2"
                                       name="last_calving_date" id="last_calving_date"
                                       value="<?php echo e(old('last_calving_date')); ?>"
                                       placeholder="Enter last calving date"/>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="days_in_milk" class="form-label"><input
                                        class="form-check-input male_selected2"
                                        type="radio" name="milk"
                                        value="milk_day"> <?php echo e(__('messages.days_in_milk')); ?></label>
                                <input type="text" class="form-control male_selected mt-2" name="days_in_milk"
                                       id="days_in_milk" value="<?php echo e(old('days_in_milk')); ?>"
                                       placeholder="Enter days in milk"/>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-3 d-none" id="dry1">
                        <div class="col-md-6 ">
                            <div class="form-group">
                                <label class="form-label">
                                    <input class="form-check-input male_selected" type="radio" name="dy"
                                           checked value="dy_date"> <?php echo e(__('messages.drying_date')); ?> </label>
                                <span class="text-danger"> *</span>
                                <input type="text" class="form-control male_selected mt-2" name="drying_date"
                                       id="drying_date" value="<?php echo e(old('drying_date')); ?>"
                                       placeholder="Pick drying date"/>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="form-label">
                                    <input class="form-check-input" type="radio"
                                           name="dy" value="dy_days"> <?php echo e(__('messages.days_in_dry')); ?> </label>
                                <input type="text" class="form-control male_selected mt-2" name="days_in_dry"
                                       id="days_in_dry" value="<?php echo e(old('days_in_dry')); ?>"
                                       placeholder="Enter days in dry"/>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-3 d-none" id="dry2">
                        <div class="col-md-8">
                            <div class="form-group">
                                <label for="drying_reason" class="form-label"><?php echo e(__('messages.dry_reason')); ?> </label>
                                <textarea type="text" class="form-control male_selected mt-2" id="drying_reason"
                                          name="drying_reason" rows="4" cols="50"
                                          placeholder="Enter drying reason"><?php echo e(old('drying_reason')); ?></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-3 d-none" id="milking2">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="calf_sex" class="form-label"><?php echo e(__('messages.calf_sex')); ?></label> <span
                                    class="text-danger"> *</span>
                                <select class="form-control male_selected2 mt-2" name="calf_sex" id="calf_sex">
                                    <option value="">Select Calf Sex</option>
                                    <option value="male" <?php echo e(old('calf_sex') === 'male' ? 'selected': ''); ?>>
                                        Male
                                    </option>
                                    <option
                                        value="female" <?php echo e(old('calf_sex') === 'female' ? 'selected': ''); ?>>
                                        Female
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="last_calving_status"
                                       class="form-label"><?php echo e(__('messages.last_calving_status')); ?></label> <span
                                    class="text-danger"> *</span>
                                <select class="form-control male_selected2 mt-2" name="last_calving_status"
                                        id="last_calving_status">
                                    <option value="">Select Calving Status</option>
                                    <option
                                        value="normal" <?php echo e(old('last_calving_status') === 'normal' ? 'selected': ''); ?>>
                                        <?php echo e(__('messages.normal')); ?>

                                    </option>
                                    <option
                                        value="abnormal" <?php echo e(old('last_calving_status') === 'abnormal' ? 'selected': ''); ?>>
                                        <?php echo e(__('messages.abnormal')); ?>

                                    </option>
                                    <option
                                        value="dead" <?php echo e(old('last_calving_status') === 'dead' ? 'selected': ''); ?>>
                                        <?php echo e(__('messages.dead')); ?>

                                    </option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-3">
                        <div class="form-group">
                            <p class="form-label"><?php echo e(__('messages.pregnant_or_ai')); ?></p>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input custom-control male_selected2" type="radio"
                                       name="reproduction_status" id="none1" value="none">
                                <label class="form-label" for="none1"><?php echo e(__('messages.none')); ?></label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input custom-control male_selected2" type="radio"
                                       name="reproduction_status" value="pregnant" id="pregnant">
                                <label class="form-label" for="pregnant"><?php echo e(__('messages.pregnant')); ?></label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input custom-control male_selected2" type="radio"
                                       name="reproduction_status" value="AI"
                                       id="AI">
                                <label class="form-label" for="AI"><?php echo e(__('messages.a_i')); ?></label>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-3 d-none" id="pregnancy">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="organization" class="form-label"><input
                                        class="form-check-input male_selected"
                                        type="radio" name="preg" checked
                                        value="preg_date"> <?php echo e(__('messages.pd_check_date')); ?></label>
                                <span class="text-danger"> *</span>
                                <input type="text" class="form-control male_selected mt-2" name="pd_check_date"
                                       id="pd_check_date" value="<?php echo e(old('pd_check_date')); ?>"
                                       placeholder="Pic pd check date"/>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="pregnancy_days" class="form-label"><input
                                        class="form-check-input male_selected"
                                        type="radio" name="preg"
                                        value="preg_days"> <?php echo e(__('messages.pregnant_days')); ?> </label>
                                <input type="text" class="form-control male_selected mt-2" name="pregnancy_days"
                                       id="pregnancy_days" value="<?php echo e(old('pregnancy_days')); ?>"
                                       placeholder="Enter pregnancy days"/>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-3 d-none" id="ai_no">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="ai_date" class="form-label"><input
                                        class="form-check-input male_selected"
                                        type="radio" name="arti" checked
                                        value="arti_date"><?php echo e(__('messages.artificial_inseminate_date')); ?> </label> <span
                                    class="text-danger"> *</span>
                                <input type="text" class="form-control male_selected mt-2" name="ai_date"
                                       id="ai_date" value="<?php echo e(old('ai_date')); ?>"
                                       placeholder="Pick artificial inseminator date"/>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="ai_days" class="form-label"><input
                                        class="form-check-input male_selected"
                                        type="radio" name="arti"
                                        value="arti_days"><?php echo e(__('messages.artificial_inseminate_days')); ?></label>
                                <input type="text" class="form-control male_selected mt-2" name="ai_days"
                                       id="ai_days" value="<?php echo e(old('ai_days')); ?>"
                                       placeholder="Enter artificial inseminator days"/>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-3 d-none" id="common_ai_pre">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="heat_sequence"
                                       class="form-label"><?php echo e(__('messages.heats_sequence')); ?></label>
                                <input type="text" class="form-control male_selected mt-2" name="heat_sequence"
                                       id="heat_sequence" value="<?php echo e(old('heat_sequence')); ?>"
                                       placeholder="Enter heat sequence"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- button start -->
            <div class="mt-4 d-flex justify-content-between">
                <div>
                    <button type="button" class="btn prev-button" target="#parents-details"
                            style="background-color:  #EAECF0;">
                        <?php echo e(__('messages.previous')); ?>

                    </button>
                </div>
                <div class="d-flex">
                    <button type="button" class="btn  me-2" data-bs-dismiss="modal"
                            style="background: #EAECF0;"><?php echo e(__('messages.close')); ?>

                    </button>
                    <button type="submit" class="btn btn-primary">
                        <?php echo e(__('messages.save')); ?>

                    </button>
                </div>
            </div>
        </div>
    </div>
</form>

<script>
    $("#birth_date").datepicker({
        autoHide: true,
        endDate: "today",
        format: 'dd-mm-yyyy',
    });

    $("#m_id").select2({
        dropdownParent: $(".createModal")
    });
    // Get tag list for dropdown with pagination
    $(".cattle_tag_id").select2({
        dropdownParent: $('.createModal'),
        placeholder: 'Tag IDs...',
        allowClear: true,
        ajax: {
            url: '/system/cattles/tagIdforselect2',
            dataType: 'json',
            delay: 250,
            data: function(params) {
                return {
                    term: params.term || '',
                    page: params.page || 1
                }
            },
            cache: true
        }
    });
    $('#birth_date').change(function(){
        var birthDateStr = $('#birth_date').val();
        var parts = birthDateStr.split("-");
        var day = parseInt(parts[0]);
        var month = parseInt(parts[1]);
        var year = parseInt(parts[2]);
        var birthday = new Date(year, month - 1, day);
        var today = new Date();
        var age = today.getFullYear() - birthday.getFullYear();
        var monthDiff = today.getMonth() - birthday.getMonth();

        if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthday.getDate())) {
            age--;
        }
        var months;
        if (monthDiff < 0) {
            months = (12 - birthday.getMonth()) + today.getMonth() - 1;
        } else {
            months = today.getMonth() - birthday.getMonth();
        }
        var days;
        if (today.getDate() < birthday.getDate()) {
            var lastMonth = new Date(today.getFullYear(), today.getMonth() - 1, 0);
            days = lastMonth.getDate() - birthday.getDate() + today.getDate();
        } else {
            days = today.getDate() - birthday.getDate();
        }
        var result = "The cattle is " + age + " years, " + months + " months, and " + days + " days old.";
        console.log(result);
        $('#birth_date_year').val(age);
        $('#birth_date_month').val(months);
        $('#birth_date_day').val(days);
    });
    $("#birth_date_year, #birth_date_month, #birth_date_day").change(function(){
        var year = $("#birth_date_year").val();
        var month = $("#birth_date_month").val();
        var day = $("#birth_date_day").val();
        if (year && month && day) {
            var currentYear = new Date().getFullYear();
            var birthYear = currentYear - parseInt(year);
            var birthday = new Date(birthYear, month - 1, day);
            var formattedDate = birthday.getDate().toString().padStart(2, '0') + "-" + (birthday.getMonth() + 1).toString().padStart(2, '0') + "-" + birthday.getFullYear();
            $("#birth_date").val(formattedDate);
        }
    });
</script>
<script src="<?php echo e(asset('assets/js/cattle.min.js')); ?>"></script>

<?php /**PATH D:\laragon\www\hr_and_att\resources\views/backend/cattle/create.blade.php ENDPATH**/ ?>