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

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

@include('common.message')
@foreach($all_animals as $animals) @endforeach
{{__('manage_cow.id') }} {{__('manage_cow.image') }} {{__('manage_cow.gender') }} {{__('manage_cow.animal_type') }} {{__('manage_cow.buy_date') }} {{__('manage_cow.buying_price') }} {{__('manage_cow.pregnant_status') }} {{__('manage_cow.milk_per_day') }} {{__('manage_cow.animal_status') }} {{__('same.action') }}
@if($animals->pictures !='') @if(file_exists('storage/app/public/uploads/animal/'.explode('_', $animals->pictures)[0])) @else @endif @else @endif {{$animals->gender}} @if(isset($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($animals->pregnant_status==0) @else @endif {{$animals->milk_ltr_per_day}} @if((bool)$animals->sale_status) @else @endif
{{Form::open(array('route'=>['animal.destroy',$animals->id],'method'=>'DELETE'))}} {!! Form::close() !!}
{{$all_animals->render()}}
@endsection