@extends('layouts.layout') @section('title', __('manage_cow.calf_list_title')) @section('content')

{{__('manage_cow.calf_list_title') }}

@include('common.message')
@foreach($all_animals as $animals) @endforeach
{{__('manage_cow.id') }} {{__('manage_cow.image') }} {{__('manage_cow.mother_id') }} {{__('manage_cow.gender') }} {{__('manage_cow.animal_type') }} {{__('manage_cow.buy_date') }} {{__('manage_cow.buying_price') }} {{__('manage_cow.calf_status') }} {{__('same.action') }}
@if($animals->pictures !='') @if(file_exists('storage/app/public/uploads/animal/'.explode('_', $animals->pictures)[0])) @else @endif @else @endif 000{{$animals->animal_id}} {{$animals->gender}} @if(isset($animals->animal_animalType_object->type_name)) {{$animals->animal_animalType_object->type_name}} @endif @if(!empty($animals->buy_date)) {{date('M d, Y', strtotime($animals->buy_date))}} @endif {{App\Library\farm::currency($animals->buying_price)}} @if((bool)$animals->sale_status) @else @endif
{{Form::open(array('route'=>['calf.destroy',$animals->id],'method'=>'DELETE'))}} {!! Form::close() !!}
{{$all_animals->render()}}
@endsection