@extends('admin.layout.app') @section('content') SubCategories SubCategories @include('admin.layout.session') Edit SubCategories Delete @method('delete') @csrf @csrf @method('put') Main Category @forelse($categories as $key => $value) id == $subcategory->category_id ? 'selected' : ''}}>{{$value->category_name}} @empty No Category @endforelse @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif Category Name @if ($errors->has('subcategory_name')) {{ $errors->first('subcategory_name') }} @endif Keyword @if ($errors->has('keyword')) {{ $errors->first('keyword') }} @endif Description {{$subcategory->description}} @if ($errors->has('description')) {{ $errors->first('description') }} @endif Image @if ($errors->has('subcategory_image')) {{ $errors->first('subcategory_image') }} @endif @if($subcategory->subcategory_image != '') @endif Submit Back @endsection @push('js') @endpush