├── public ├── favicon.ico ├── robots.txt ├── mix-manifest.json ├── used_images │ ├── cover_nave.jpg │ └── searchbar.png ├── fonts │ └── vendor │ │ ├── font-awesome │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ │ └── @fortawesome │ │ └── fontawesome-free │ │ ├── webfa-solid-900.eot │ │ ├── webfa-solid-900.ttf │ │ ├── webfa-solid-900.woff │ │ └── webfa-solid-900.woff2 ├── .htaccess ├── js │ ├── custom_script.js │ └── admin_main.js ├── web.config ├── css │ ├── switch.css │ └── admin_custom.css ├── index.php └── svg │ └── 404.svg ├── resources ├── sass │ ├── _custom.scss │ ├── _variables.scss │ └── app.scss ├── views │ ├── inc │ │ └── message.blade.php │ ├── auth │ │ ├── verify.blade.php │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ └── login.blade.php │ ├── authors │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ └── index.blade.php │ ├── shelves │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ └── index.blade.php │ ├── publishers │ │ ├── edit.blade.php │ │ ├── create.blade.php │ │ └── index.blade.php │ ├── categories │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ └── index.blade.php │ ├── layouts │ │ └── tableNav.blade.php │ ├── borrowers │ │ ├── return.blade.php │ │ ├── create.blade.php │ │ ├── show.blade.php │ │ ├── index.blade.php │ │ └── edit.blade.php │ ├── receives │ │ └── index.blade.php │ ├── searched.blade.php │ ├── books │ │ ├── show.blade.php │ │ └── index.blade.php │ ├── home.blade.php │ ├── users │ │ ├── index.blade.php │ │ ├── edit.blade.php │ │ └── show.blade.php │ └── welcome.blade.php ├── lang │ └── en │ │ ├── pagination.php │ │ ├── auth.php │ │ └── passwords.php └── js │ ├── components │ └── ExampleComponent.vue │ ├── app.js │ └── bootstrap.js ├── database ├── .gitignore ├── seeds │ ├── DatabaseSeeder.php │ ├── ShelvesTableSeeder.php │ ├── CategoriesTableSeeder.php │ ├── PublishersTableSeeder.php │ ├── AuthorsTableSeeder.php │ └── UserTableSeeder.php ├── factories │ └── UserFactory.php └── migrations │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2018_11_06_193958_create_authors_table.php │ ├── 2018_11_06_194119_create_publishers_table.php │ ├── 2018_11_06_194054_create_shelves_table.php │ ├── 2018_11_06_193448_create_categories_table.php │ ├── 2018_11_23_101346_create__books__number_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2018_11_30_072046_create_receives_table.php │ ├── 2018_11_17_162120_create_borrowers_table.php │ └── 2018_11_11_192333_create_books_table.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── .gitattributes ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitignore ├── .editorconfig ├── app ├── Shelf.php ├── Category.php ├── Publisher.php ├── Author.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── Authenticate.php │ │ ├── TrustProxies.php │ │ ├── VerifyCsrfToken.php │ │ ├── UserTypeCheck.php │ │ ├── RedirectIfAuthenticated.php │ │ └── OnlyAdminAction.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── VerificationController.php │ │ │ ├── LoginController.php │ │ │ └── RegisterController.php │ │ ├── ApplicationController.php │ │ ├── HomeController.php │ │ ├── ReceivesController.php │ │ ├── AuthorsController.php │ │ ├── UsersController.php │ │ ├── PublishersController.php │ │ ├── ShelvesController.php │ │ └── CategoriesController.php │ └── Kernel.php ├── Receive.php ├── Borrower.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── EventServiceProvider.php │ ├── AuthServiceProvider.php │ └── RouteServiceProvider.php ├── Book.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php └── User.php ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── server.php ├── .env.example ├── LICENSE ├── config ├── view.php ├── services.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── logging.php ├── queue.php ├── cache.php └── auth.php ├── package.json ├── phpunit.xml ├── composer.json ├── artisan └── readme.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/sass/_custom.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /public/used_images/cover_nave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/used_images/cover_nave.jpg -------------------------------------------------------------------------------- /public/used_images/searchbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/used_images/searchbar.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jadoiconic/Library-management-system/HEAD/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2 -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 11 | } 12 | public function books(){ 13 | return $this->hasMany('App\Book'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/Category.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 11 | } 12 | public function books(){ 13 | return $this->hasMany('App\Book'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/Publisher.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 11 | } 12 | public function books(){ 13 | return $this->hasMany('App\Book'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/Author.php: -------------------------------------------------------------------------------- 1 | hasMany('App\Book'); 11 | } 12 | 13 | public function user(){ 14 | return $this->belongsTo('App\User'); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f8fafc; 4 | 5 | // Typography 6 | $font-family-sans-serif: "Nunito", sans-serif; 7 | $font-size-base: 0.9rem; 8 | $line-height-base: 1.6; 9 | 10 | // Colors 11 | $blue: #3490dc; 12 | $indigo: #6574cd; 13 | $purple: #9561e2; 14 | $pink: #f66D9b; 15 | $red: #e3342f; 16 | $orange: #f6993f; 17 | $yellow: #ffed4a; 18 | $green: #38c172; 19 | $teal: #4dc0b5; 20 | $cyan: #6cb2eb; 21 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Receive.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Book', 'book_id'); 11 | } 12 | public function users(){ 13 | return $this->belongsTo('App\User', 'user_id'); 14 | } 15 | public function borrowers(){ 16 | return $this->belongsTo('App\User', 'borrower_id'); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/Borrower.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Book', 'book_id'); 11 | } 12 | public function users(){ 13 | return $this->belongsTo('App\User', 'user_id'); 14 | } 15 | public function librarians(){ 16 | return $this->belongsTo('App\User', 'librarian_id'); 17 | } 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | 0) 2 | @foreach ($errors->all() as $item) 3 |
{{ $item }}
5 || # | 21 |Name | 22 |Status | 23 |Added by | 24 |Action | 25 ||
|---|---|---|---|---|---|
| {{ $n++ }} | 32 |{{ $category->name }} | 33 | @if ($category->status == 1) 34 |Available | 35 | @else 36 |Not Available | 37 | @endif 38 |{{ $category->user->username }} | 39 |Edit | 40 |
| # | 24 |Name | 25 |Added by | 26 |Added at | 27 |Action | 28 |
|---|---|---|---|---|
| {{ $n++ }} | 35 |{{ $item->name }} | 36 |{{ $item->user->username }} | 37 |{{ $item->created_at }} | 38 |Edit | 39 |
| # | 21 |Book's Title | 22 |Borrowers Email | 23 |Date Returned | 24 | 25 |
|---|---|---|---|
| {{ $n++ }} | 33 |{{ str_limit($item->books->name, 25) }} | 34 |{{ str_limit($item->users->email, 15) }} | 35 |{{ $item->created_at }} | 36 | 39 |
{{ $item->ISBN }}
32 |{{ $item->authors->name }}
33 |{{ str_limit($item->book_description, 80) }}
34 || # | 24 |Name | 25 |Added by | 26 |Added at | 27 |Action | 28 |
|---|---|---|---|---|
| {{ $n++ }} | 35 |{{ $item->name }} | 36 |{{ $item->user->username }} | 37 |{{ $item->created_at }} | 38 |39 | Edit 40 | | 41 |
{{ $books->book_description }}
13 |{{ $item->ISBN }}
47 |{{ $item->authors->name }}
48 |{{ str_limit($item->book_description, 90) }}
49 || # | 24 |Name | 25 |Status | 26 |Added by | 27 |Action | 28 ||
|---|---|---|---|---|---|
| {{ $n++ }} | 35 |{{ $item->name }} | 36 | @if ($item->status == 1) 37 |Available | 38 | @else 39 |Not Available | 40 | @endif 41 |{{ $item->user->username }} | 42 | 43 |44 | Edit 45 | | 46 |
| # | 21 |Name | 22 |Author | 23 | {{--Category | --}} 24 |category | 25 |ISBN | 26 | {{--Added by | --}} 27 |Action | 28 |
|---|---|---|---|---|---|---|---|
| {{ $n++ }} | 35 |{{ str_limit($book->name, 25) }} | 36 |{{ str_limit($book->authors->name,11) }} | 37 | {{--{{ $book->categories->name }} | --}} 38 |{{ str_limit($book->categories->name, 11) }} | 39 |{{ str_limit($book->ISBN, 11) }} | 40 | {{--{{ $book->user->email }} | --}} 41 |42 | 43 | Edit 44 | | 45 |
| # | 17 |Username | 18 |Role | 20 |Status | 21 |Action | 22 ||
|---|---|---|---|---|---|
| {{ $n++ }} | 29 |{{ $user->username}} | 30 |{{ $user->email }} | 31 |32 | @if ($user->user_type == 0) 33 | Standard 34 | @elseif($user->user_type == 1) 35 | Librarian 36 | @elseif($user->user_type == 2) 37 | Admin 38 | @endif 39 | 40 | | 41 |
42 | @if ($user->status == 1)
43 | Active 44 | @else 45 |Inactive 46 | @endif 47 | |
48 | 49 | View 50 | Edit 51 | | 52 |
| # | 24 |Book's Title | 25 |Borrowers Email | 26 |Date to Return | 27 |Status | 28 |Action | 29 |
|---|---|---|---|---|---|
| {{ $n++ }} | 37 |{{ str_limit($item->books->name, 25) }} | 38 |{{ str_limit($item->users->email, 15) }} | 39 |{{ $item->return_date }} | 40 |
41 | @if ($item->status > 0)
42 | Not Returned 43 | @elseif($item->status == 0) 44 |Returned 45 | @endif 46 | |
47 | 48 | @if ($item->status > 0) 49 | Return 50 | @elseif($item->status == 0) 51 | 52 | @endif 53 | | 54 |
name:
14 |{{ $users->first_name.' '.$users->last_name }}
17 |email:
22 |{{ $users->email }}
25 |username:
30 |{{ $users->username }}
33 |user type:
38 |41 | @if ($users->user_type == 0) 42 | standard 43 | @elseif($users->user_type == 1) 44 | librarian 45 | @elseif($users->user_type == 2) 46 | admin 47 | @endif 48 |
49 |current borrowed books:
54 |{{ count($borrowed) }}
57 |total borrowed books:
62 |{{ count($total_borrowed) }}
65 |