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

@if(isset($editData)) @lang('library.edit_book') @else @lang('library.add_book') @endif

@if ($errors->has('book_title')) {{ $errors->first('book_title') }} @endif
@if ($errors->has('book_category_id')) {{ $errors->first('book_category_id') }} @endif
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
@if ($errors->has('book_number')) {{ $errors->first('book_number') }} @endif
@if ($errors->has('isbn_no')) {{ $errors->first('isbn_no') }} @endif
@if ($errors->has('publisher_name')) {{ $errors->first('publisher_name') }} @endif
@if ($errors->has('author_name')) {{ $errors->first('author_name') }} @endif
@if ($errors->has('rack_number')) {{ $errors->first('rack_number') }} @endif
@if ($errors->has('quantity')) {{ $errors->first('quantity') }} @endif
@if ($errors->has('book_price')) {{ $errors->first('book_price') }} @endif
@php $tooltip = ""; if(userPermission("save-book-data")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}
@endsection