@extends('layouts.admin.e-commerce.app') @section('title') @isset($attribute) Edit attribute @else Add attribute @endisset @endsection @section('content') @isset($attribute) Edit attribute @else Add attribute @endisset Home @isset($attribute) Edit attribute @else Add attribute @endisset @isset($attribute) Edit attribute @else Add New attribute @endisset Back to List @csrf @isset($attribute) @method('PUT') @endisset Category name: Select Category @foreach ($categories as $category) category_id==$category->id ? 'selected':''}}@endisset value="{{$category->id}}">{{$category->name}} @endforeach attribute Name: @error('name') {{ $message }} @enderror @endsection