@extends('layouts.main') @section('title') {{ __('Categories') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
{{-- Add Category Button --}} @if(has_permissions('create', 'categories'))
@endif {{-- Create Category Section --}}

{{ __('Create Category') }}

{!! Form::open(['url' => route('categories.store'), 'data-parsley-validate', 'files' => true]) !!}
{{-- Category --}}
{{ Form::label('category', __('Category'), ['class' => 'form-label text-center']) }} {{ Form::text('category', '', [ 'class' => 'form-control', 'placeholder' => trans('Category'), 'data-parsley-required' => 'true', 'id' => 'category']) }}
{{-- Slug --}}
{{ Form::label('slug', __('Slug'), ['class' => 'form-label col-12 ']) }} {{ Form::text('slug', '', [ 'class' => 'form-control ', 'placeholder' => __('Slug'), 'id' => 'slug', ]) }} {{ __("Only Small English Characters, Numbers And Hypens Allowed") }}
{{-- Facilities --}}
{{ Form::label('type', __('Facilities'), ['class' => 'form-label text-center']) }}
{{-- Image --}}
{{ Form::label('image', __('Image'), ['class' => 'form-label text-center']) }} {{ Form::file('image', ['class' => 'form-control', 'data-parsley-required' => 'true', 'accept' => '.svg']) }}
{{-- Meta Title --}}
{{ Form::label('title', __('Meta Title'), ['class' => 'form-label text-center']) }}
0
{{-- Meta Keywords --}}
{{ Form::label('title', __('Meta Keywords'), ['class' => 'form-label text-center']) }}
{{-- Meta Description --}}
{{ Form::label('description', __('Meta Description'), ['class' => 'form-label text-center']) }}
0
{{ Form::submit(trans('Save'), ['class' => 'btn btn-primary me-1 mb-1']) }}
{!! Form::close() !!}
@if (has_permissions('read', 'categories'))
{{ __('ID') }} {{ __('Category') }} {{ __('Slug') }} {{ __('Image') }} {{ __('Facilities') }} {{ __('Meta Title') }} {{ __('Meta Description') }} {{ __('Meta Keywords') }} {{ __('Enable/Disable') }} {{ __('Action') }}
@endif @endsection @section('script') {{-- --}} @endsection