@extends('backEnd.master') @section('title') @lang('library.book_category') @endsection @section('mainContent')
@if(isset($editData)) @if(userPermission("book-category-list-store")) @endif @endif
@if(isset($editData)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => array('book-category-list-update',$editData->id), 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission("book-category-list-store")) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'book-category-list-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif

@if(isset($editData)) @lang('common.edit') @else @lang('common.add') @endif @lang('library.book_category')

@if ($errors->has('category_name')) {{ $errors->first('category_name') }} @endif
@php $tooltip = ""; if(userPermission("book-category-list-store")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('student.category_list')

@foreach($bookCategories as $key=>$value) @endforeach
@lang('common.sl') @lang('student.category_title') @lang('common.action')
{{ $key+1 }} {{$value->category_name}} @if (userPermission('book-category-list-edit')) @lang('common.edit') @endif @if (userPermission('book-category-list-delete')) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js')