@extends('templates.backend')
@section('page-title', isset($page_title) ? $page_title : 'View Category')
@section('breadcrumbs')
{!! App\Helpers\Breadcrumbs::generate([
'Categories' => ['backend.categories.index'],
$category->name => null,
]); !!}
@stop
@section('content')
{!! link_to_route('backend.categories.edit.get', 'Edit Category', [$category->id], ['class' => 'btn btn-warning']) !!}
{!! link_to_route('backend.categories.destroy', 'Delete Category', [$category->id], ['class' => 'btn btn-danger']) !!}
@include('backend.categories._partials.snapshot')
@include('backend.markers._partials.table', ['markers' => $category->markers, 'hidden_columns' => ['Category'=>1]])
{{--
--}}
{{--@if($image_url = $category->getImageUrl('image'))--}}
{{--{!! link_to_route('backend.categories.delete_image', 'Delete Image', [$category->id], ['class' => 'btn btn-danger']) !!}--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--@else--}}
{{--None--}}
{{--@endif--}}
{{--
--}}
@if($icon_url = $category->getIconImageUrl())
{!! link_to_route('backend.categories.delete_icon', 'Delete Icon', [$category->id], ['class' => 'btn btn-danger']) !!}
@else
None
@endif
@stop