@extends('dashboard.layout.index') @section('title') {{__('site.books')}} @endsection @section('content')
{{__('site.books')}}{{' '.$books->total()}}
@if(auth()->user()->hasPermission('create_books')) {{' '.__('site.add')}} @else {{' '.__('site.add')}} @endif

@php $i = 1; $locale = app()->getLocale(); @endphp @if($books->count() > 0)
@foreach($books as $book) @endforeach
# {{__('site.name')}} {{__('site.semester')}} {{__('site.class')}} {{__('site.type')}} {{__('site.action')}}
{{$i++ +(4*($books->currentPage()-1))}} {{$book->translate($locale)->name}} {{__('site.'. $book->semester)}} {{__('site.'. $book->class)}} {{__('site.'. $book->type)}} {{' '.__('site.read')}} {{' '.__('site.add_icon')}} @if(auth()->user()->hasPermission('delete_books'))
@csrf {{method_field('delete')}}
@else @endif
@else

{{__('site.no_data_found')}}

@endif
@endsection @section('jsFooter') @endsection