@extends('layouts.app') @php $title = isset($category)?'Edit Category':'Create Category'; @endphp @section('title', $title) @section('css') @endsection @section('content') @php $type = config('constant.gender_type'); $categoryType = config('constant.category_type'); $imageValidation = config('constant.image_validation'); @endphp Categories Dashboard {{$title}} {{$title}} @csrf @if(isset($category)) @method('PUT') @endif Name * Type * Select Type @foreach($categoryType as $key=>$type) category_type ?? '') == $key ? 'selected' : '' }}>{{$type}} @endforeach Status status ?? '') == 1 ? 'selected' : '' }}>Active status ?? '') == 0 ? 'selected' : '' }}>In Active Category Image Recommended size: 300x300px. Max size: {{ $imageValidation['max_size_mb'] }}MB @if(isset($category) && $category->image) @endif @endsection @section('scripts') @endsection