@extends('admin.layouts.layouts') @section('title', 'Edit | Pesticide') @section('content')
{!! Form::open([ 'route' => ['pesticide.update', $editDetails->id], 'method' => 'POST', 'id' => 'validate_form_add_pesticide', 'class' => 'forms-sample', 'enctype' => 'multipart/form-data', ]) !!} {!! Form::hidden('edit_id', $editDetails->id, ['id' => 'editId']) !!}
{{ $errors->first('name') }}
@php $image = 'public/' . ($editDetails->image ?? ''); @endphp @if (isset($editDetails->image) && !empty($editDetails->image))
@if (!empty($editDetails->image) && Storage::exists($image)) Tin File @else No Image @endif
@endif
{{ $errors->first('image') }}
{{ $errors->first('description') }}
{{ Form::close() }}
@endsection @section('page-js') @endsection