@extends('Backend.Layouts.app') @php $page_title = "Manage Books"; @endphp @section('content') @if ( request()->has('create') || request()->has('edit') ) @if( request()->edit ) @if( in_array('can_edit_product', current_user()->permissions() ) ) @include( backend_file('products.add_new') ) @else
You don't have the Permission to Edit a book !
@endif @endif @if( request()->create ) @if( in_array('can_create_product', current_user()->permissions() ) ) @include( backend_file('products.add_new') ) @elseYou don't have the Permission to Create a Book !
@endif @endif @else @include( backend_file('products.view') ) @endif @stop