@extends('admin.layouts.master-soyuz') @section('title','All Childcategories') @section('body') @component('admin.component.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('All Childcategories') }} @endslot @slot('menu1') {{ __('Childcategories') }} @endslot @slot('button')
@endslot @endcomponentID | Image | Category Title | Status | Featured | Updated | Action |
---|---|---|---|---|---|---|
{{$key+1}} |
@if($cat->image != '')
@if(@file_exists(public_path().'/images/grandcategory/'.$cat->image) )
|
Name: {{ $cat->title }} Description: {{ strip_tags($cat->description) }} Subcategory: {{ isset($cat->subcategory) ? $cat->subcategory->title : '' }} |
@can('childcategory.edit') @endcan | @can('childcategory.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('childcategory.edit')
Edit
@endcan
@can('childcategory.delete')
{{ __("Delete") }}
@endcan
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_id | Yes | Parent category id to be passed here. It means that this childcategory is linked with given category id. |
8 | subcat_id | Yes | Subcateory id to be passed here. It means that this childcategory is linked with given subcategory id. |