@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')
{{__("Import Categories")}} {{__("Add Category")}}
@endslot @endcomponent
{{ __('All Categories') }}
{{ __('Note') }}:
  • {{ __('Drag and Drop to sort the categories') }}
@foreach($category as $key => $cat) @endforeach
# {{ __('Category ID') }} {{ __('Image') }} {{ __('Detail') }} {{ __('Icon') }} {{ __('Status') }} {{ __('Featured') }} {{ __('Added/ Updated on') }} {{ __('Action') }}
{{ ++$key }} {{ $cat->id }} @if($cat->image != '' && file_exists(public_path().'/images/category/'.$cat->image) ) @else @endif

{{__('Name')}}: {{$cat->title}}

{{__('Description')}}: {{substr(strip_tags($cat->description), 0, 100)}}{{strlen(strip_tags( $cat->description))>100 ? '...' : ""}}

@can('category.edit')
{{ csrf_field() }}
@endcan
@can('category.edit')
{{ csrf_field() }}
@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)) }}

@endsection @section('custom-script') @endsection