@extends('admin.layouts.master-soyuz') @section('title','All Subcategories') @section('body') @component('admin.component.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('All Subcategories') }} @endslot @slot('menu1') {{ __('Subcategories') }} @endslot @slot('button') @can('subcategory.create')
@endslot @endcomponent @endcan# | ID | Image | Subcategory Detail | Icon | Status | Featured | Added/ Updated On | Action |
---|---|---|---|---|---|---|---|---|
{{ ++$key }} | {{ $cat->id }} |
@if($cat->image != '')
@if(file_exists(public_path().'/images/subcategory/'.$cat->image) )
|
Name: {{$cat->title}} Description: {{strip_tags($cat->description)}} Parent Category: {{$cat->category['title'] ?? ''}} |
|
@can('subcategory.edit') @endcan | @can('subcategory.edit') @endcan |
{{ date('M jS Y',strtotime($cat->created_at)) }}, {{ date('h:i A',strtotime($cat->created_at)) }} {{ date('M jS Y',strtotime($cat->updated_at)) }} {{ date('h:i A',strtotime($cat->updated_at)) }} |
@can('subcategory.edit')
Edit
@endcan
@if($cat->id!=1)
@can('subcategory.delete')
{{ __("Delete") }}
@endcan
@endif
Delete{{ __('Are You Sure ?')}}{{ __('Do you really want to delete')}}? {{ __('This process cannot be undone.')}} |
Follow the instructions carefully before importing the file.
The columns of the file should be in the following order.
Column No | Column Name | Required | Description |
---|---|---|---|
1 | name | Yes | Enter category name |
2 | status | Yes | Category status (1 = active, 0 = deactive) . |
3 | image | No | Name your image eg: example.jpg (Image must be already put in public/images/subcategory/) folder ) . |
4 | icon | No | Icon class name eg: fa-book. . |
5 | description | No | Description of your category. |
6 | featured | No | Set subcategory to be featured 1 = Yes , 0 = No. |
7 | parent_cat | Yes | Parent category id to be passed here. It means that this subcategory is linked with given category id. |