@extends('layouts.settings') @section('title', __('book.list')) @section('content_settings')
| {{ __('app.table_no') }} | {{ __('book.name') }} | {{ __('book.budget') }} | {{ __('report.periode') }} | {{ __('app.status') }} | {{ __('book.visibility') }} | {{ __('bank_account.bank_account') }} | {{ __('app.action') }} |
|---|---|---|---|---|---|---|---|
| {{ $key + $books->firstItem() }} | @can('view', $book) {{ link_to_route('books.show', $book->name, $book, [ 'id' => 'show-book-'.$book->id, 'title' => __('book.show'), ]) }} @else {{ $book->name }} @endcan | {{ $book->budget ? format_number($book->budget) : '' }} | {{ __('report.'.$book->report_periode_code) }} | {{ $book->status }} | {{ __('book.report_visibility_'.$book->report_visibility_code) }} | {{ $book->bankAccount->name }} | @if ($book->id != auth()->activeBookId()) {!! FormField::formButton( ['route' => 'book_switcher.store'], __('book.switch'), ['id' => 'activate_book_'.$book->id, 'class' => 'btn btn-success btn-sm'], ['switch_book' => $book->id] ) !!} @else {{ __('app.active') }} @endif @can('view', $book) {{ link_to_route( 'books.show', __('app.show'), [$book], [ 'id' => 'show-book-'.$book->id, 'class' => 'btn btn-sm btn-secondary', ] ) }} @endcan @can('update', $book) {{ link_to_route( 'books.edit', __('app.edit'), [$book], [ 'id' => 'edit-book-'.$book->id, 'class' => 'btn btn-sm text-dark btn-warning', ] ) }} @endcan |
| {{ __('book.not_found') }} | |||||||