@extends('admin.layouts.master-soyuz') @section('title','All Categories') @section('body') @component('admin.component.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('All Categories') }} @endslot @slot('menu1') {{ __('Categories') }} @endslot @slot('button')
@endslot @endcomponent# | Category ID | Image | Detail | Icon | Status | Featured | Make as Collection | Added/ Updated on | Action |
---|---|---|---|---|---|---|---|---|---|
{{ ++$key }} | {{ $cat->id }} |
@if($cat->image != '')
@if(file_exists(public_path().'/images/category/'.$cat->image) )
|
Name: {{$cat->title}} Description: {{substr(strip_tags($cat->description), 0, 100)}}{{strlen(strip_tags( $cat->description))>100 ? '...' : ""}} |
|
@can('category.edit') @endcan | @can('category.edit') @endcan | @can('category.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('category.edit')
Edit
@endcan
@if($cat->id!=1)
@can('category.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/category/) folder ) . |
4 | icon | No | Icon class name eg: fa-book. . |
5 | description | No | Description of your category. |
6 | featured | No | Set category to be featured 1 = Yes , 0 = No. |