| م | {{ __('messages.NAME') }} | @ability(['admin', 'super_admin'], ['']){{ __('messages.STATUS') }} | @endabilityvisibility | file_download | {{ __('messages.PUBLISHED_DATE') }} | إضافة | تعديل | {{ __('messages.CONTROL') }} |
|---|---|---|---|---|---|---|---|---|
| {{ $book->id }} | {{ $book->name }} | @ability(['admin', 'super_admin'], [''])@endability | {{ $book->views }} | {{ $book->downloads }} |
{{ $book->created_at->toDateString() }} {{ $book->created_at->toTimeString() }} |
{{ $book->getUser->name ?? '' }} | {{ $book->getEditor->name ?? '' }} | @ability(['publisher', 'admin', 'super_admin'], ['']) @php if (auth()->user()->id == $book->created_by) { $user_ability = 1; } elseif ( $user ->roles() ->get() ->first()->id == 1 ) { $user_ability = 1; } elseif ( $user ->roles() ->get() ->first()->id == 2 ) { $user_ability = 1; } else { $user_ability = 0; } @endphp @if ($user_ability > 0) {{-- --}} @endif @endability |