@php $isEdit = isset($row) && $row; $action = $isEdit ? route($routePrefix . '.update', $row->id) : route($routePrefix . '.store'); @endphp
@if($errors->any())
@endif
@csrf @if($isEdit) @method('PUT') @endif
@if($isEdit && $row->image)
@endif
Cancel