├── .env.example
├── .gitattributes
├── .gitignore
├── README.md
├── app
├── Booking.php
├── Client.php
├── Console
│ └── Kernel.php
├── Dashboard.php
├── Exceptions
│ └── Handler.php
├── Http
│ ├── Controllers
│ │ ├── Auth
│ │ │ ├── ForgotPasswordController.php
│ │ │ ├── LoginController.php
│ │ │ ├── RegisterController.php
│ │ │ └── ResetPasswordController.php
│ │ ├── BookingController.php
│ │ ├── ClientsController.php
│ │ ├── Controller.php
│ │ ├── DashboardController.php
│ │ ├── RoomController.php
│ │ ├── SessionsController.php
│ │ └── UserController.php
│ ├── Kernel.php
│ └── Middleware
│ │ ├── EncryptCookies.php
│ │ ├── RedirectIfAuthenticated.php
│ │ ├── TrimStrings.php
│ │ ├── TrustProxies.php
│ │ └── VerifyCsrfToken.php
├── Providers
│ ├── AppServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── BroadcastServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
├── Room.php
└── User.php
├── artisan
├── bash.exe.stackdump
├── bootstrap
├── app.php
└── cache
│ └── .gitignore
├── composer.json
├── composer.lock
├── config
├── app.php
├── auth.php
├── broadcasting.php
├── cache.php
├── database.php
├── debugbar.php
├── filesystems.php
├── hashing.php
├── logging.php
├── mail.php
├── queue.php
├── services.php
├── session.php
└── view.php
├── database
├── .gitignore
├── factories
│ └── UserFactory.php
├── migrations
│ ├── 2014_10_12_000000_create_users_table.php
│ ├── 2014_10_12_100000_create_password_resets_table.php
│ ├── 2018_01_08_111156_create_clients_table.php
│ ├── 2018_01_10_084936_create_book.php
│ ├── 2018_01_10_092203_create_rooms_table.php
│ └── 2018_01_11_110222_create_bookings_table.php
└── seeds
│ ├── BookingsSeeder.php
│ ├── ClientsSeeder.php
│ ├── DatabaseSeeder.php
│ ├── RoomsSeeder.php
│ └── UsersSeeder.php
├── package.json
├── phpunit.xml
├── public
├── .htaccess
├── css
│ ├── app.css
│ ├── bootstrap.min.css
│ ├── bootstrap
│ │ ├── calendar-disabled.png
│ │ ├── calendar.png
│ │ ├── datepicker.png
│ │ ├── timepicker.png
│ │ ├── zebra_datepicker.css
│ │ └── zebra_datepicker.min.css
│ ├── default
│ │ ├── calendar-disabled.png
│ │ ├── calendar.png
│ │ ├── datepicker.png
│ │ ├── timepicker.png
│ │ ├── zebra_datepicker.css
│ │ └── zebra_datepicker.min.css
│ ├── font-awesome.min.css
│ ├── metallic
│ │ ├── calendar-disabled.png
│ │ ├── calendar.png
│ │ ├── datepicker.png
│ │ ├── default-date.png
│ │ ├── disabled-date.png
│ │ ├── header.png
│ │ ├── selected-date.png
│ │ ├── timepicker.png
│ │ ├── zebra_datepicker.css
│ │ └── zebra_datepicker.min.css
│ └── style.css
├── favicon.ico
├── fonts
│ ├── FontAwesome.otf
│ ├── OpenSans-Bold.ttf
│ ├── OpenSans-BoldItalic.ttf
│ ├── OpenSans-ExtraBold.ttf
│ ├── OpenSans-ExtraBoldItalic.ttf
│ ├── OpenSans-Italic.ttf
│ ├── OpenSans-Light.ttf
│ ├── OpenSans-LightItalic.ttf
│ ├── OpenSans-Regular.ttf
│ ├── OpenSans-SemiBold.ttf
│ ├── OpenSans-SemiBoldItalic.ttf
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ ├── fontawesome-webfont.woff
│ └── fontawesome-webfont.woff2
├── index.php
├── js
│ ├── app.js
│ ├── bootstrap.js
│ ├── jquery.js
│ ├── script.js
│ └── zebra_datepicker.min.js
├── less
│ ├── animated.less
│ ├── bordered-pulled.less
│ ├── core.less
│ ├── fixed-width.less
│ ├── flags-16.less
│ ├── font-awesome.less
│ ├── icons.less
│ ├── larger.less
│ ├── list.less
│ ├── mixins.less
│ ├── path.less
│ ├── rotated-flipped.less
│ ├── screen-reader.less
│ ├── stacked.less
│ └── variables.less
├── robots.txt
├── scss
│ ├── _animated.scss
│ ├── _bordered-pulled.scss
│ ├── _core.scss
│ ├── _fixed-width.scss
│ ├── _icons.scss
│ ├── _larger.scss
│ ├── _list.scss
│ ├── _mixins.scss
│ ├── _path.scss
│ ├── _rotated-flipped.scss
│ ├── _screen-reader.scss
│ ├── _stacked.scss
│ ├── _variables.scss
│ └── font-awesome.scss
└── uploads
│ ├── eror.png
│ └── placeholder.png
├── resources
├── assets
│ ├── js
│ │ ├── app.js
│ │ ├── bootstrap.js
│ │ └── components
│ │ │ └── ExampleComponent.vue
│ └── sass
│ │ ├── _variables.scss
│ │ └── app.scss
├── lang
│ └── en
│ │ ├── auth.php
│ │ ├── pagination.php
│ │ ├── passwords.php
│ │ └── validation.php
└── views
│ ├── bookings
│ ├── _fields.blade.php
│ ├── canceled.blade.php
│ ├── create.blade.php
│ ├── detail.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── clients
│ ├── _fields.blade.php
│ ├── create.blade.php
│ ├── detail.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── dashboard.blade.php
│ ├── errors
│ └── errors.blade.php
│ ├── layouts
│ ├── master.blade.php
│ └── navbar.blade.php
│ ├── rooms
│ ├── _fields.blade.php
│ ├── create.blade.php
│ ├── detail.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── sessions
│ └── create.blade.php
│ └── user
│ └── index.blade.php
├── routes
├── api.php
├── channels.php
├── console.php
└── web.php
├── server.php
├── storage
├── app
│ ├── .gitignore
│ └── public
│ │ └── .gitignore
├── debugbar
│ └── .gitignore
├── framework
│ ├── .gitignore
│ ├── cache
│ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ ├── testing
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
└── logs
│ └── .gitignore
├── tests
├── CreatesApplication.php
├── Feature
│ └── ExampleTest.php
├── TestCase.php
└── Unit
│ └── ExampleTest.php
├── webpack.mix.js
└── yarn.lock
/.env.example:
--------------------------------------------------------------------------------
1 | APP_NAME=Laravel
2 | APP_ENV=local
3 | APP_KEY=
4 | APP_DEBUG=true
5 | APP_LOG_LEVEL=debug
6 | APP_URL=http://localhost
7 |
8 | DB_CONNECTION=mysql
9 | DB_HOST=127.0.0.1
10 | DB_PORT=3306
11 | DB_DATABASE=backend
12 | DB_USERNAME=root
13 | DB_PASSWORD=bimo
14 |
15 | BROADCAST_DRIVER=log
16 | CACHE_DRIVER=file
17 | SESSION_DRIVER=file
18 | SESSION_LIFETIME=120
19 | QUEUE_DRIVER=sync
20 |
21 | REDIS_HOST=127.0.0.1
22 | REDIS_PASSWORD=null
23 | REDIS_PORT=6379
24 |
25 | MAIL_DRIVER=smtp
26 | MAIL_HOST=smtp.mailtrap.io
27 | MAIL_PORT=2525
28 | MAIL_USERNAME=null
29 | MAIL_PASSWORD=null
30 | MAIL_ENCRYPTION=null
31 |
32 | PUSHER_APP_ID=
33 | PUSHER_APP_KEY=
34 | PUSHER_APP_SECRET=
35 | PUSHER_APP_CLUSTER=mt1
36 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.css linguist-vendored
3 | *.scss linguist-vendored
4 | *.js linguist-vendored
5 | CHANGELOG.md export-ignore
6 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /public/hot
3 | /public/storage
4 | /storage/*.key
5 | /vendor
6 | /.idea
7 | /.vagrant
8 | Homestead.json
9 | Homestead.yaml
10 | npm-debug.log
11 | yarn-error.log
12 | .env
13 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Laravel-Booking
2 | Laravel based application used to book rooms and bookings and manage bookings and clients.
3 | For now this is a basic booking management system for hotels.
4 |
5 | ### Features
6 | * Adding clients and modify them and rooms associated with clients.
7 | * Adding a new Room or check the availability of the room.
8 | * Create and manage bookings
9 |
10 | ## Installations / Instructions
11 |
12 | ``` git clone https://github.com/javedbaloch4/Laravel-Booking.git ```
13 |
14 | Open `.env` file to configure your `database` and it's `name`, `host`, and `password`
15 |
16 | ``` composer install ```
17 |
18 | ``` cp .env.example .env ``` / ``` copy .env.example .env ```
19 |
20 | ``` php artisan key:generate ```
21 |
22 | ``` php artisan migrate --seed ```
23 |
24 | ``` php artisan serve ```
25 |
26 | `localhost:8000`
27 |
28 | ## Wiki
29 | Please view the [wiki](https://github.com/javedbaloch4/Laravel-Booking/wiki) for a list of features.
30 |
31 | ## Issues
32 | If you come across any issues please [report them here](https://github.com/javedbaloch4/Laravel-Booking/issues).
33 |
34 | ## Contributing
35 |
36 | Lets build it together I will be glad if you consider contribute to the Laravel Booking project! Please feel free to make any pull requests, or e-mail me a feature request you would like to see in the future to, Javed at mjavedahmed@live.com
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/app/Booking.php:
--------------------------------------------------------------------------------
1 | belongsTo(Room::class);
14 | }
15 |
16 | public function client()
17 | {
18 | return $this->belongsTo(Client::class);
19 | }
20 |
21 | public function user() {
22 | return $this->belongsTo(User::class);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/app/Client.php:
--------------------------------------------------------------------------------
1 | command('inspire')
28 | // ->hourly();
29 | }
30 |
31 | /**
32 | * Register the commands for the application.
33 | *
34 | * @return void
35 | */
36 | protected function commands()
37 | {
38 | $this->load(__DIR__.'/Commands');
39 |
40 | require base_path('routes/console.php');
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/Dashboard.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/LoginController.php:
--------------------------------------------------------------------------------
1 | middleware('guest')->except('logout');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/RegisterController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
40 | }
41 |
42 | /**
43 | * Get a validator for an incoming registration request.
44 | *
45 | * @param array $data
46 | * @return \Illuminate\Contracts\Validation\Validator
47 | */
48 | protected function validator(array $data)
49 | {
50 | return Validator::make($data, [
51 | 'name' => 'required|string|max:255',
52 | 'email' => 'required|string|email|max:255|unique:users',
53 | 'password' => 'required|string|min:6|confirmed',
54 | ]);
55 | }
56 |
57 | /**
58 | * Create a new user instance after a valid registration.
59 | *
60 | * @param array $data
61 | * @return \App\User
62 | */
63 | protected function create(array $data)
64 | {
65 | return User::create([
66 | 'name' => $data['name'],
67 | 'email' => $data['email'],
68 | 'password' => bcrypt($data['password']),
69 | ]);
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/ResetPasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/app/Http/Controllers/BookingController.php:
--------------------------------------------------------------------------------
1 | middleware(['auth']);
17 | }
18 |
19 | public function index()
20 | {
21 | $bookings = Booking::all();
22 | return view('bookings.index', compact('bookings'));
23 | }
24 |
25 | public function create()
26 | {
27 | $booking = new Booking();
28 | $clients = Client::all();
29 | $rooms = Room::where('status', 1)->get();
30 | return view('bookings.create', compact('clients', 'rooms', 'booking'));
31 | }
32 |
33 | public function store(Request $request)
34 | {
35 | // Validate the Form
36 | $request->validate([
37 | 'client_id' => 'required',
38 | 'room_id' => 'required',
39 | 'start_date' => 'required',
40 | 'end_date' => 'required',
41 | ]);
42 |
43 | // Save into Database
44 | Booking::create([
45 | 'client_id' => $request->client_id,
46 | 'room_id' => $request->room_id,
47 | 'user_id' => auth()->user()->id,
48 | 'start_date' => $request->start_date,
49 | 'end_date' => $request->end_date,
50 | ]);
51 |
52 | // Update Rooms status
53 | $room = Room::find($request->room_id);
54 | $room->status = 0;
55 | $room->save();
56 |
57 | session()->flash('msg', 'The Room Has been booked');
58 |
59 | return redirect('/booking');
60 | }
61 |
62 |
63 | public function show($id)
64 | {
65 | $booking = Booking::find($id);
66 | return view('bookings.detail', compact('booking'));
67 | }
68 |
69 | public function edit(Booking $booking)
70 | {
71 | $booking = Booking::find($booking->id);
72 | $rooms = Room::all();
73 | $clients = Client::all();
74 | return view('bookings.edit', compact('booking', 'clients', 'rooms'));
75 | }
76 |
77 | public function update(Request $request, $id)
78 | {
79 | $booking = Booking::find($id);
80 | $booking->update($request->all());
81 | $request->session()->flash('msg', 'Booking has been updated');
82 | return redirect('/booking');
83 | }
84 |
85 | public function destroy(Request $request, Booking $booking)
86 | {
87 | Booking::destroy($booking->id);
88 | $request->session()->flash('msg', 'Booking has been deleted');
89 | return redirect('booking');
90 | }
91 |
92 | public function cancel($room_id, $booking_id) {
93 | $booking = Booking::find($booking_id);
94 | $room = Room::find($room_id);
95 | $booking->status = 0;
96 | $booking->user_id = auth()->id();
97 | $booking->save();
98 | $room->status = 1;
99 | $room->save();
100 | session()->flash('msg','Booking has been canceled');
101 | return redirect('/booking');
102 | }
103 |
104 | public function canceledBookings() {
105 | $canceledBookings = Booking::where('status', 0)->get();
106 | return view('bookings.canceled', compact('canceledBookings'));
107 | }
108 |
109 | }
110 |
--------------------------------------------------------------------------------
/app/Http/Controllers/ClientsController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
16 | }
17 |
18 | public function index()
19 | {
20 |
21 | // Find All clients and passing to clients
22 | $clients = Client::all();
23 |
24 | // Redirect to Clients page
25 | return view('clients.index', compact('clients'));
26 | }
27 |
28 |
29 |
30 | public function create()
31 | {
32 | // Instance of Client
33 | $client = new Client();
34 |
35 | // Redirect to client page, along with passing client object into Array
36 | return view('clients.create', compact('client'));
37 | }
38 |
39 | public function store(Request $request)
40 | {
41 | // Validate the form
42 | $request->validate([
43 | 'name' => 'required',
44 | 'email' => 'required|email',
45 | 'phone' => 'required',
46 | 'image' => 'required|image'
47 | ]);
48 |
49 | // Check if there is any file
50 | if ($request->hasFile('image')) {
51 | $image = $request->image;
52 | $image->move("uploads", $image->getClientOriginalName());
53 | }
54 |
55 | // Store into Database
56 | Client::create([
57 | 'name' => $request->name,
58 | 'email' => $request->email,
59 | 'phone' => $request->phone,
60 | 'image' => $request->image->getClientOriginalName()
61 | ]);
62 |
63 | // Stored a Message in session
64 | $request->session()->flash('msg', 'Client has been added');
65 |
66 | // Redirect back to Clients
67 | return redirect('/clients');
68 | }
69 |
70 | public function show($id)
71 | {
72 | // Find the client
73 | $client = Client::find($id);
74 |
75 | // Get a specific booking
76 | $bookings = Booking::where('client_id', $id)->get()->all();
77 |
78 | // Return back to client details
79 | return view('clients.detail', compact('client', 'bookings'));
80 | }
81 |
82 | public function edit($id)
83 | {
84 | // Find the client
85 | $client = Client::find($id);
86 |
87 | // Redirect to Edit client
88 | return view('clients.edit', compact('client'));
89 | }
90 |
91 | public function update(Request $request, $id)
92 | {
93 | // Find the client
94 | $client = Client::find($id);
95 |
96 | // Validate the form
97 | $request->validate([
98 | 'name' => 'required',
99 | 'email' => 'required|email',
100 | 'phone' => 'required',
101 | ]);
102 |
103 | // Check if there is any image,
104 | if ($request->hasFile('image')) {
105 | // Check if file exists
106 | if (file_exists(public_path('uploads/') . $client->image)) {
107 | // Delete an old image
108 | unlink(public_path('uploads/') . $client->image);
109 | }
110 |
111 | // Get and Upload new image
112 | $image = $request->image;
113 | $image->move("uploads", $image->getClientOriginalName());
114 |
115 | $client->image = $request->image->getClientOriginalName();
116 | }
117 |
118 | // Updating Clients
119 | $client->update([
120 | 'name' => $request->name,
121 | 'email' => $request->email,
122 | 'phone' => $request->phone,
123 | 'image' => $client->image,
124 | ]);
125 |
126 | // Store a message in session
127 | request()->session()->flash('msg', 'Client has been updated');
128 |
129 | // Redirect to Clients
130 | return redirect('clients');
131 | }
132 |
133 | public function destroy($id)
134 | {
135 | // Find the client
136 | Client::destroy($id);
137 |
138 | // Store a message n session
139 | request()->session()->flash('msg', 'Client has been deleted');
140 |
141 | // Redirect back to Clients
142 | return redirect('clients');
143 | }
144 | }
145 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
18 | }
19 |
20 |
21 | public function index()
22 | {
23 | $client = new Client();
24 | $room = new Room();
25 | $booking = new Booking();
26 | return view('dashboard', compact('client','room','booking'));
27 | }
28 |
29 | public function create()
30 | {
31 | //
32 | }
33 |
34 | public function store(Request $request)
35 | {
36 | //
37 | }
38 |
39 |
40 | public function show(Dashboard $dashboard)
41 | {
42 | //
43 | }
44 |
45 | public function edit(Dashboard $dashboard)
46 | {
47 | //
48 | }
49 |
50 | public function update(Request $request, Dashboard $dashboard)
51 | {
52 | //
53 | }
54 |
55 | public function destroy(Dashboard $dashboard)
56 | {
57 | //
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/app/Http/Controllers/RoomController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
14 | }
15 |
16 | public function index()
17 | {
18 | $rooms = Room::all();
19 | return view('rooms.index', compact('rooms'));
20 | }
21 |
22 | public function create()
23 | {
24 | $room = new Room();
25 | return view('rooms.create', compact('room'));
26 | }
27 |
28 | public function store(Request $request)
29 | {
30 | $request->validate([
31 | 'name' => 'required',
32 | 'floor' => 'required',
33 | 'type' => 'required',
34 | 'beds' => 'required'
35 | ]);
36 |
37 | Room::create($request->all());
38 |
39 | $request->session()->flash('msg', 'Room has been created');
40 |
41 | return redirect('/rooms');
42 | }
43 |
44 | public function show(Room $room)
45 | {
46 | $room = Room::find($room->id);
47 | return view('rooms.detail', compact('room'));
48 | }
49 |
50 | public function edit(Room $room)
51 | {
52 | $room = Room::find($room->id);
53 | return view('rooms.edit', compact('room'));
54 | }
55 |
56 | public function update(Request $request, $id)
57 | {
58 | $request->validate([
59 | 'name' => 'required',
60 | 'floor' => 'required',
61 | 'type' => 'required',
62 | 'beds' => 'required'
63 | ]);
64 |
65 | $room = Room::find($id);
66 | $room->update($request->all());
67 | $request->session()->flash('msg', 'Room has been updated');
68 | return redirect('/rooms');
69 | }
70 |
71 | public function destroy(Room $room)
72 | {
73 | Room::destroy($room->id);
74 | request()->session()->flash('msg', 'Room has been deleted');
75 | return redirect('rooms');
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/app/Http/Controllers/SessionsController.php:
--------------------------------------------------------------------------------
1 | middleware('guest', ['except'=>'destroy']);
12 | }
13 |
14 | public function create() {
15 | return view('sessions.create');
16 | }
17 |
18 | public function store() {
19 |
20 | // Validate the user
21 | request()->validate([
22 | 'email' => 'required|email',
23 | 'password' => 'required',
24 | ]);
25 |
26 | if (! auth()->attempt(request(['email','password']))) {
27 | return back()->withErrors([
28 | 'message' => 'Wrong credentials please try again'
29 | ]);
30 | }
31 |
32 | return redirect('/');
33 |
34 | }
35 |
36 | public function destroy() {
37 | auth()->logout();
38 |
39 | session()->flash('msg','You have been logout successfully');
40 |
41 | return redirect('/login');
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/app/Http/Controllers/UserController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
13 | }
14 |
15 | public function index() {
16 |
17 | $id = auth()->id();
18 |
19 | $user = User::where('id', $id)->first();
20 |
21 | return view('user.index', compact('user'));
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/app/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | [
31 | \App\Http\Middleware\EncryptCookies::class,
32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33 | \Illuminate\Session\Middleware\StartSession::class,
34 | // \Illuminate\Session\Middleware\AuthenticateSession::class,
35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36 | \App\Http\Middleware\VerifyCsrfToken::class,
37 | \Illuminate\Routing\Middleware\SubstituteBindings::class,
38 | ],
39 |
40 | 'api' => [
41 | 'throttle:60,1',
42 | 'bindings',
43 | ],
44 | ];
45 |
46 | /**
47 | * The application's route middleware.
48 | *
49 | * These middleware may be assigned to groups or used individually.
50 | *
51 | * @var array
52 | */
53 | protected $routeMiddleware = [
54 | 'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
57 | 'can' => \Illuminate\Auth\Middleware\Authorize::class,
58 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
59 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
60 | ];
61 | }
62 |
--------------------------------------------------------------------------------
/app/Http/Middleware/EncryptCookies.php:
--------------------------------------------------------------------------------
1 | check()) {
21 | return redirect('/home');
22 | }
23 |
24 | return $next($request);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/Http/Middleware/TrimStrings.php:
--------------------------------------------------------------------------------
1 | 'App\Policies\ModelPolicy',
17 | ];
18 |
19 | /**
20 | * Register any authentication / authorization services.
21 | *
22 | * @return void
23 | */
24 | public function boot()
25 | {
26 | $this->registerPolicies();
27 |
28 | //
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/Providers/BroadcastServiceProvider.php:
--------------------------------------------------------------------------------
1 | [
17 | 'App\Listeners\EventListener',
18 | ],
19 | ];
20 |
21 | /**
22 | * Register any events for your application.
23 | *
24 | * @return void
25 | */
26 | public function boot()
27 | {
28 | parent::boot();
29 |
30 | //
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/Providers/RouteServiceProvider.php:
--------------------------------------------------------------------------------
1 | mapApiRoutes();
39 |
40 | $this->mapWebRoutes();
41 |
42 | //
43 | }
44 |
45 | /**
46 | * Define the "web" routes for the application.
47 | *
48 | * These routes all receive session state, CSRF protection, etc.
49 | *
50 | * @return void
51 | */
52 | protected function mapWebRoutes()
53 | {
54 | Route::middleware('web')
55 | ->namespace($this->namespace)
56 | ->group(base_path('routes/web.php'));
57 | }
58 |
59 | /**
60 | * Define the "api" routes for the application.
61 | *
62 | * These routes are typically stateless.
63 | *
64 | * @return void
65 | */
66 | protected function mapApiRoutes()
67 | {
68 | Route::prefix('api')
69 | ->middleware('api')
70 | ->namespace($this->namespace)
71 | ->group(base_path('routes/api.php'));
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/app/Room.php:
--------------------------------------------------------------------------------
1 | make(Illuminate\Contracts\Console\Kernel::class);
34 |
35 | $status = $kernel->handle(
36 | $input = new Symfony\Component\Console\Input\ArgvInput,
37 | new Symfony\Component\Console\Output\ConsoleOutput
38 | );
39 |
40 | /*
41 | |--------------------------------------------------------------------------
42 | | Shutdown The Application
43 | |--------------------------------------------------------------------------
44 | |
45 | | Once Artisan has finished running, we will fire off the shutdown events
46 | | so that any final work may be done by the application before we shut
47 | | down the process. This is the last thing to happen to the request.
48 | |
49 | */
50 |
51 | $kernel->terminate($input, $status);
52 |
53 | exit($status);
54 |
--------------------------------------------------------------------------------
/bash.exe.stackdump:
--------------------------------------------------------------------------------
1 | Stack trace:
2 | Frame Function Args
3 | 000FFFF5CF0 0018005D5CC (000FFFFE3F4, 00000000000, 00000000000, 000FFFFDE50)
4 | 000FFFF5D90 0018005EBDB (00000000000, 00000000000, 00000000150, 000FFFF6070)
5 | 000FFFFFFFF 00180045BE9 (00000000000, 00000000005, 7FFE5F59ED25, 00000000000)
6 | 000000003E5 00180067E78 (00180300AD0, 00000000000, 000FFFF612C, 00100000000)
7 | 001801E00D0 00180068022 (00000000004, 00180301520, 001005EB000, 00000000000)
8 | 00000000003 00180064E82 (00180066FB9, 00180301598, 001800E0B89, 00000000000)
9 | 00000000003 00180134802 (000FFFF6330, 00000000080, 00000080000, 00610000000)
10 | 00000000003 0018011C90B (000FFFF6330, 00000000080, 00000080000, 00610000000)
11 | 00000000003 0010047369E (000000019F0, 00000000000, 001005F1F98, 00000000000)
12 | 00000000001 001004328A7 (00600000001, 0060017CF50, 001800BB4AC, 00000000000)
13 | 0060017D390 00100437B8A (0060017CF50, 0060017C837, 00000000076, 000FFFF6578)
14 | 0060017CF50 00100438BE4 (00000000001, 00600000000, 000FFFF66B8, 00000000000)
15 | 0060017C340 00100439A7C (00000000000, 00000000000, 00000000000, 00000000000)
16 | 001005F6B74 0010043A3E6 (00000000083, 00000000009, 0060017B1F0, 0060017C7C0)
17 | 001005F6B74 0010043A53F (001800F4A30, 03000000000, 000801FF8D0, 0060017B1F0)
18 | 001005F6B74 001004337B1 (00100000000, 0010043A4E0, 0060004C220, 0060004C220)
19 | End of stack trace (more stack frames may be present)
20 |
--------------------------------------------------------------------------------
/bootstrap/app.php:
--------------------------------------------------------------------------------
1 | singleton(
30 | Illuminate\Contracts\Http\Kernel::class,
31 | App\Http\Kernel::class
32 | );
33 |
34 | $app->singleton(
35 | Illuminate\Contracts\Console\Kernel::class,
36 | App\Console\Kernel::class
37 | );
38 |
39 | $app->singleton(
40 | Illuminate\Contracts\Debug\ExceptionHandler::class,
41 | App\Exceptions\Handler::class
42 | );
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Return The Application
47 | |--------------------------------------------------------------------------
48 | |
49 | | This script returns the application instance. The instance is given to
50 | | the calling script so we can separate the building of the instances
51 | | from the actual running of the application and sending responses.
52 | |
53 | */
54 |
55 | return $app;
56 |
--------------------------------------------------------------------------------
/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "laravel/laravel",
3 | "description": "The Laravel Framework.",
4 | "keywords": ["framework", "laravel"],
5 | "license": "MIT",
6 | "type": "project",
7 | "require": {
8 | "php": ">=7.2.3",
9 | "fideloper/proxy": "~4.0",
10 | "laravel/framework": "5.6.*",
11 | "laravel/tinker": "~1.0",
12 | "laravelcollective/html": "^5.4.0",
13 | "yajra/laravel-datatables-oracle": "^8.4"
14 | },
15 | "require-dev": {
16 | "filp/whoops": "~2.0",
17 | "fzaninotto/faker": "~1.4",
18 | "mockery/mockery": "~1.0",
19 | "phpunit/phpunit": "~7.0",
20 | "symfony/thanks": "^1.0"
21 | },
22 | "autoload": {
23 | "classmap": [
24 | "database/seeds",
25 | "database/factories"
26 | ],
27 | "psr-4": {
28 | "App\\": "app/"
29 | }
30 | },
31 | "autoload-dev": {
32 | "psr-4": {
33 | "Tests\\": "tests/"
34 | }
35 | },
36 | "extra": {
37 | "laravel": {
38 | "dont-discover": [
39 | ]
40 | }
41 | },
42 | "scripts": {
43 | "post-root-package-install": [
44 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
45 | ],
46 | "post-create-project-cmd": [
47 | "@php artisan key:generate"
48 | ],
49 | "post-autoload-dump": [
50 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
51 | "@php artisan package:discover"
52 | ]
53 | },
54 | "config": {
55 | "preferred-install": "dist",
56 | "sort-packages": true,
57 | "optimize-autoloader": true
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/config/auth.php:
--------------------------------------------------------------------------------
1 | [
17 | 'guard' => 'web',
18 | 'passwords' => 'users',
19 | ],
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Authentication Guards
24 | |--------------------------------------------------------------------------
25 | |
26 | | Next, you may define every authentication guard for your application.
27 | | Of course, a great default configuration has been defined for you
28 | | here which uses session storage and the Eloquent user provider.
29 | |
30 | | All authentication drivers have a user provider. This defines how the
31 | | users are actually retrieved out of your database or other storage
32 | | mechanisms used by this application to persist your user's data.
33 | |
34 | | Supported: "session", "token"
35 | |
36 | */
37 |
38 | 'guards' => [
39 | 'web' => [
40 | 'driver' => 'session',
41 | 'provider' => 'users',
42 | ],
43 |
44 | 'api' => [
45 | 'driver' => 'token',
46 | 'provider' => 'users',
47 | ],
48 | ],
49 |
50 | /*
51 | |--------------------------------------------------------------------------
52 | | User Providers
53 | |--------------------------------------------------------------------------
54 | |
55 | | All authentication drivers have a user provider. This defines how the
56 | | users are actually retrieved out of your database or other storage
57 | | mechanisms used by this application to persist your user's data.
58 | |
59 | | If you have multiple user tables or models you may configure multiple
60 | | sources which represent each model / table. These sources may then
61 | | be assigned to any extra authentication guards you have defined.
62 | |
63 | | Supported: "database", "eloquent"
64 | |
65 | */
66 |
67 | 'providers' => [
68 | 'users' => [
69 | 'driver' => 'eloquent',
70 | 'model' => App\User::class,
71 | ],
72 |
73 | // 'users' => [
74 | // 'driver' => 'database',
75 | // 'table' => 'users',
76 | // ],
77 | ],
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Resetting Passwords
82 | |--------------------------------------------------------------------------
83 | |
84 | | You may specify multiple password reset configurations if you have more
85 | | than one user table or model in the application and you want to have
86 | | separate password reset settings based on the specific user types.
87 | |
88 | | The expire time is the number of minutes that the reset token should be
89 | | considered valid. This security feature keeps tokens short-lived so
90 | | they have less time to be guessed. You may change this as needed.
91 | |
92 | */
93 |
94 | 'passwords' => [
95 | 'users' => [
96 | 'provider' => 'users',
97 | 'table' => 'password_resets',
98 | 'expire' => 60,
99 | ],
100 | ],
101 |
102 | ];
103 |
--------------------------------------------------------------------------------
/config/broadcasting.php:
--------------------------------------------------------------------------------
1 | env('BROADCAST_DRIVER', 'null'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Broadcast Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may define all of the broadcast connections that will be used
26 | | to broadcast events to other systems or over websockets. Samples of
27 | | each available type of connection are provided inside this array.
28 | |
29 | */
30 |
31 | 'connections' => [
32 |
33 | 'pusher' => [
34 | 'driver' => 'pusher',
35 | 'key' => env('PUSHER_APP_KEY'),
36 | 'secret' => env('PUSHER_APP_SECRET'),
37 | 'app_id' => env('PUSHER_APP_ID'),
38 | 'options' => [
39 | 'cluster' => env('PUSHER_APP_CLUSTER'),
40 | 'encrypted' => true,
41 | ],
42 | ],
43 |
44 | 'redis' => [
45 | 'driver' => 'redis',
46 | 'connection' => 'default',
47 | ],
48 |
49 | 'log' => [
50 | 'driver' => 'log',
51 | ],
52 |
53 | 'null' => [
54 | 'driver' => 'null',
55 | ],
56 |
57 | ],
58 |
59 | ];
60 |
--------------------------------------------------------------------------------
/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_DRIVER', 'file'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Cache Stores
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may define all of the cache "stores" for your application as
26 | | well as their drivers. You may even define multiple stores for the
27 | | same cache driver to group types of items stored in your caches.
28 | |
29 | */
30 |
31 | 'stores' => [
32 |
33 | 'apc' => [
34 | 'driver' => 'apc',
35 | ],
36 |
37 | 'array' => [
38 | 'driver' => 'array',
39 | ],
40 |
41 | 'database' => [
42 | 'driver' => 'database',
43 | 'table' => 'cache',
44 | 'connection' => null,
45 | ],
46 |
47 | 'file' => [
48 | 'driver' => 'file',
49 | 'path' => storage_path('framework/cache/data'),
50 | ],
51 |
52 | 'memcached' => [
53 | 'driver' => 'memcached',
54 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
55 | 'sasl' => [
56 | env('MEMCACHED_USERNAME'),
57 | env('MEMCACHED_PASSWORD'),
58 | ],
59 | 'options' => [
60 | // Memcached::OPT_CONNECT_TIMEOUT => 2000,
61 | ],
62 | 'servers' => [
63 | [
64 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
65 | 'port' => env('MEMCACHED_PORT', 11211),
66 | 'weight' => 100,
67 | ],
68 | ],
69 | ],
70 |
71 | 'redis' => [
72 | 'driver' => 'redis',
73 | 'connection' => 'default',
74 | ],
75 |
76 | ],
77 |
78 | /*
79 | |--------------------------------------------------------------------------
80 | | Cache Key Prefix
81 | |--------------------------------------------------------------------------
82 | |
83 | | When utilizing a RAM based store such as APC or Memcached, there might
84 | | be other applications utilizing the same cache. So, we'll specify a
85 | | value to get prefixed to all our keys so we can avoid collisions.
86 | |
87 | */
88 |
89 | 'prefix' => env(
90 | 'CACHE_PREFIX',
91 | str_slug(env('APP_NAME', 'laravel'), '_').'_cache'
92 | ),
93 |
94 | ];
95 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | env('DB_CONNECTION', 'mysql'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Database Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here are each of the database connections setup for your application.
24 | | Of course, examples of configuring each database platform that is
25 | | supported by Laravel is shown below to make development simple.
26 | |
27 | |
28 | | All database work in Laravel is done through the PHP PDO facilities
29 | | so make sure you have the driver for your particular database of
30 | | choice installed on your machine before you begin development.
31 | |
32 | */
33 |
34 | 'connections' => [
35 |
36 | 'sqlite' => [
37 | 'driver' => 'sqlite',
38 | 'database' => env('DB_DATABASE', database_path('database.sqlite')),
39 | 'prefix' => '',
40 | ],
41 |
42 | 'mysql' => [
43 | 'driver' => 'mysql',
44 | 'host' => env('DB_HOST', '127.0.0.1'),
45 | 'port' => env('DB_PORT', '3306'),
46 | 'database' => env('DB_DATABASE', 'forge'),
47 | 'username' => env('DB_USERNAME', 'forge'),
48 | 'password' => env('DB_PASSWORD', ''),
49 | 'unix_socket' => env('DB_SOCKET', ''),
50 | 'charset' => 'utf8mb4',
51 | 'collation' => 'utf8mb4_unicode_ci',
52 | 'prefix' => '',
53 | 'strict' => true,
54 | 'engine' => null,
55 | ],
56 |
57 | 'pgsql' => [
58 | 'driver' => 'pgsql',
59 | 'host' => env('DB_HOST', '127.0.0.1'),
60 | 'port' => env('DB_PORT', '5432'),
61 | 'database' => env('DB_DATABASE', 'forge'),
62 | 'username' => env('DB_USERNAME', 'forge'),
63 | 'password' => env('DB_PASSWORD', ''),
64 | 'charset' => 'utf8',
65 | 'prefix' => '',
66 | 'schema' => 'public',
67 | 'sslmode' => 'prefer',
68 | ],
69 |
70 | 'sqlsrv' => [
71 | 'driver' => 'sqlsrv',
72 | 'host' => env('DB_HOST', 'localhost'),
73 | 'port' => env('DB_PORT', '1433'),
74 | 'database' => env('DB_DATABASE', 'forge'),
75 | 'username' => env('DB_USERNAME', 'forge'),
76 | 'password' => env('DB_PASSWORD', ''),
77 | 'charset' => 'utf8',
78 | 'prefix' => '',
79 | ],
80 |
81 | ],
82 |
83 | /*
84 | |--------------------------------------------------------------------------
85 | | Migration Repository Table
86 | |--------------------------------------------------------------------------
87 | |
88 | | This table keeps track of all the migrations that have already run for
89 | | your application. Using this information, we can determine which of
90 | | the migrations on disk haven't actually been run in the database.
91 | |
92 | */
93 |
94 | 'migrations' => 'migrations',
95 |
96 | /*
97 | |--------------------------------------------------------------------------
98 | | Redis Databases
99 | |--------------------------------------------------------------------------
100 | |
101 | | Redis is an open source, fast, and advanced key-value store that also
102 | | provides a richer set of commands than a typical key-value systems
103 | | such as APC or Memcached. Laravel makes it easy to dig right in.
104 | |
105 | */
106 |
107 | 'redis' => [
108 |
109 | 'client' => 'predis',
110 |
111 | 'default' => [
112 | 'host' => env('REDIS_HOST', '127.0.0.1'),
113 | 'password' => env('REDIS_PASSWORD', null),
114 | 'port' => env('REDIS_PORT', 6379),
115 | 'database' => 0,
116 | ],
117 |
118 | ],
119 |
120 | ];
121 |
--------------------------------------------------------------------------------
/config/filesystems.php:
--------------------------------------------------------------------------------
1 | env('FILESYSTEM_DRIVER', 'local'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Cloud Filesystem Disk
21 | |--------------------------------------------------------------------------
22 | |
23 | | Many applications store files both locally and in the cloud. For this
24 | | reason, you may specify a default "cloud" driver here. This driver
25 | | will be bound as the Cloud disk implementation in the container.
26 | |
27 | */
28 |
29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Filesystem Disks
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may configure as many filesystem "disks" as you wish, and you
37 | | may even configure multiple disks of the same driver. Defaults have
38 | | been setup for each driver as an example of the required options.
39 | |
40 | | Supported Drivers: "local", "ftp", "s3", "rackspace"
41 | |
42 | */
43 |
44 | 'disks' => [
45 |
46 | 'local' => [
47 | 'driver' => 'local',
48 | 'root' => storage_path('app'),
49 | ],
50 |
51 | 'public' => [
52 | 'driver' => 'local',
53 | 'root' => storage_path('app/public'),
54 | 'url' => env('APP_URL').'/storage',
55 | 'visibility' => 'public',
56 | ],
57 |
58 | 's3' => [
59 | 'driver' => 's3',
60 | 'key' => env('AWS_ACCESS_KEY_ID'),
61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
62 | 'region' => env('AWS_DEFAULT_REGION'),
63 | 'bucket' => env('AWS_BUCKET'),
64 | ],
65 |
66 | ],
67 |
68 | ];
69 |
--------------------------------------------------------------------------------
/config/hashing.php:
--------------------------------------------------------------------------------
1 | 'bcrypt',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Bcrypt Options
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may specify the configuration options that should be used when
26 | | passwords are hashed using the Bcrypt algorithm. This will allow you
27 | | to control the amount of time it takes to hash the given password.
28 | |
29 | */
30 |
31 | 'bcrypt' => [
32 | 'rounds' => env('BCRYPT_ROUNDS', 10),
33 | ],
34 |
35 | /*
36 | |--------------------------------------------------------------------------
37 | | Argon Options
38 | |--------------------------------------------------------------------------
39 | |
40 | | Here you may specify the configuration options that should be used when
41 | | passwords are hashed using the Argon algorithm. These will allow you
42 | | to control the amount of time it takes to hash the given password.
43 | |
44 | */
45 |
46 | 'argon' => [
47 | 'memory' => 1024,
48 | 'threads' => 2,
49 | 'time' => 2,
50 | ],
51 |
52 | ];
--------------------------------------------------------------------------------
/config/logging.php:
--------------------------------------------------------------------------------
1 | env('LOG_CHANNEL', 'stack'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Log Channels
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may configure the log channels for your application. Out of
26 | | the box, Laravel uses the Monolog PHP logging library. This gives
27 | | you a variety of powerful log handlers / formatters to utilize.
28 | |
29 | | Available Drivers: "single", "daily", "slack", "syslog",
30 | | "errorlog", "monolog",
31 | | "custom", "stack"
32 | |
33 | */
34 |
35 | 'channels' => [
36 | 'stack' => [
37 | 'driver' => 'stack',
38 | 'channels' => ['single'],
39 | ],
40 |
41 | 'single' => [
42 | 'driver' => 'single',
43 | 'path' => storage_path('logs/laravel.log'),
44 | 'level' => 'debug',
45 | ],
46 |
47 | 'daily' => [
48 | 'driver' => 'daily',
49 | 'path' => storage_path('logs/laravel.log'),
50 | 'level' => 'debug',
51 | 'days' => 7,
52 | ],
53 |
54 | 'slack' => [
55 | 'driver' => 'slack',
56 | 'url' => env('LOG_SLACK_WEBHOOK_URL'),
57 | 'username' => 'Laravel Log',
58 | 'emoji' => ':boom:',
59 | 'level' => 'critical',
60 | ],
61 |
62 | 'stderr' => [
63 | 'driver' => 'monolog',
64 | 'handler' => StreamHandler::class,
65 | 'with' => [
66 | 'stream' => 'php://stderr',
67 | ],
68 | ],
69 |
70 | 'syslog' => [
71 | 'driver' => 'syslog',
72 | 'level' => 'debug',
73 | ],
74 |
75 | 'errorlog' => [
76 | 'driver' => 'errorlog',
77 | 'level' => 'debug',
78 | ],
79 | ],
80 |
81 | ];
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_DRIVER', 'smtp'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | SMTP Host Address
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may provide the host address of the SMTP server used by your
27 | | applications. A default option is provided that is compatible with
28 | | the Mailgun mail service which will provide reliable deliveries.
29 | |
30 | */
31 |
32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
33 |
34 | /*
35 | |--------------------------------------------------------------------------
36 | | SMTP Host Port
37 | |--------------------------------------------------------------------------
38 | |
39 | | This is the SMTP port used by your application to deliver e-mails to
40 | | users of the application. Like the host we have set this value to
41 | | stay compatible with the Mailgun e-mail application by default.
42 | |
43 | */
44 |
45 | 'port' => env('MAIL_PORT', 587),
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Global "From" Address
50 | |--------------------------------------------------------------------------
51 | |
52 | | You may wish for all e-mails sent by your application to be sent from
53 | | the same address. Here, you may specify a name and address that is
54 | | used globally for all e-mails that are sent by your application.
55 | |
56 | */
57 |
58 | 'from' => [
59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
60 | 'name' => env('MAIL_FROM_NAME', 'Example'),
61 | ],
62 |
63 | /*
64 | |--------------------------------------------------------------------------
65 | | E-Mail Encryption Protocol
66 | |--------------------------------------------------------------------------
67 | |
68 | | Here you may specify the encryption protocol that should be used when
69 | | the application send e-mail messages. A sensible default using the
70 | | transport layer security protocol should provide great security.
71 | |
72 | */
73 |
74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
75 |
76 | /*
77 | |--------------------------------------------------------------------------
78 | | SMTP Server Username
79 | |--------------------------------------------------------------------------
80 | |
81 | | If your SMTP server requires a username for authentication, you should
82 | | set it here. This will get used to authenticate with your server on
83 | | connection. You may also set the "password" value below this one.
84 | |
85 | */
86 |
87 | 'username' => env('MAIL_USERNAME'),
88 |
89 | 'password' => env('MAIL_PASSWORD'),
90 |
91 | /*
92 | |--------------------------------------------------------------------------
93 | | Sendmail System Path
94 | |--------------------------------------------------------------------------
95 | |
96 | | When using the "sendmail" driver to send e-mails, we will need to know
97 | | the path to where Sendmail lives on this server. A default path has
98 | | been provided here, which will work well on most of your systems.
99 | |
100 | */
101 |
102 | 'sendmail' => '/usr/sbin/sendmail -bs',
103 |
104 | /*
105 | |--------------------------------------------------------------------------
106 | | Markdown Mail Settings
107 | |--------------------------------------------------------------------------
108 | |
109 | | If you are using Markdown based email rendering, you may configure your
110 | | theme and component paths here, allowing you to customize the design
111 | | of the emails. Or, you may simply stick with the Laravel defaults!
112 | |
113 | */
114 |
115 | 'markdown' => [
116 | 'theme' => 'default',
117 |
118 | 'paths' => [
119 | resource_path('views/vendor/mail'),
120 | ],
121 | ],
122 |
123 | ];
124 |
--------------------------------------------------------------------------------
/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_DRIVER', 'sync'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Queue Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may configure the connection information for each server that
26 | | is used by your application. A default configuration has been added
27 | | for each back-end shipped with Laravel. You are free to add more.
28 | |
29 | */
30 |
31 | 'connections' => [
32 |
33 | 'sync' => [
34 | 'driver' => 'sync',
35 | ],
36 |
37 | 'database' => [
38 | 'driver' => 'database',
39 | 'table' => 'jobs',
40 | 'queue' => 'default',
41 | 'retry_after' => 90,
42 | ],
43 |
44 | 'beanstalkd' => [
45 | 'driver' => 'beanstalkd',
46 | 'host' => 'localhost',
47 | 'queue' => 'default',
48 | 'retry_after' => 90,
49 | ],
50 |
51 | 'sqs' => [
52 | 'driver' => 'sqs',
53 | 'key' => env('SQS_KEY', 'your-public-key'),
54 | 'secret' => env('SQS_SECRET', 'your-secret-key'),
55 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'),
57 | 'region' => env('SQS_REGION', 'us-east-1'),
58 | ],
59 |
60 | 'redis' => [
61 | 'driver' => 'redis',
62 | 'connection' => 'default',
63 | 'queue' => 'default',
64 | 'retry_after' => 90,
65 | ],
66 |
67 | ],
68 |
69 | /*
70 | |--------------------------------------------------------------------------
71 | | Failed Queue Jobs
72 | |--------------------------------------------------------------------------
73 | |
74 | | These options configure the behavior of failed queue job logging so you
75 | | can control which database and table are used to store the jobs that
76 | | have failed. You may change them to any database / table you wish.
77 | |
78 | */
79 |
80 | 'failed' => [
81 | 'database' => env('DB_CONNECTION', 'mysql'),
82 | 'table' => 'failed_jobs',
83 | ],
84 |
85 | ];
86 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
18 | 'domain' => env('MAILGUN_DOMAIN'),
19 | 'secret' => env('MAILGUN_SECRET'),
20 | ],
21 |
22 | 'ses' => [
23 | 'key' => env('SES_KEY'),
24 | 'secret' => env('SES_SECRET'),
25 | 'region' => 'us-east-1',
26 | ],
27 |
28 | 'sparkpost' => [
29 | 'secret' => env('SPARKPOST_SECRET'),
30 | ],
31 |
32 | 'stripe' => [
33 | 'model' => App\User::class,
34 | 'key' => env('STRIPE_KEY'),
35 | 'secret' => env('STRIPE_SECRET'),
36 | ],
37 |
38 | ];
39 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => env('SESSION_LIFETIME', 120),
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session Encryption
39 | |--------------------------------------------------------------------------
40 | |
41 | | This option allows you to easily specify that all of your session data
42 | | should be encrypted before it is stored. All encryption will be run
43 | | automatically by Laravel and you can use the Session like normal.
44 | |
45 | */
46 |
47 | 'encrypt' => false,
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session File Location
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the native session driver, we need a location where session
55 | | files may be stored. A default has been set for you but a different
56 | | location may be specified. This is only needed for file sessions.
57 | |
58 | */
59 |
60 | 'files' => storage_path('framework/sessions'),
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Connection
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" or "redis" session drivers, you may specify a
68 | | connection that should be used to manage these sessions. This should
69 | | correspond to a connection in your database configuration options.
70 | |
71 | */
72 |
73 | 'connection' => null,
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Database Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | When using the "database" session driver, you may specify the table we
81 | | should use to manage the sessions. Of course, a sensible default is
82 | | provided for you; however, you are free to change this as needed.
83 | |
84 | */
85 |
86 | 'table' => 'sessions',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Cache Store
91 | |--------------------------------------------------------------------------
92 | |
93 | | When using the "apc" or "memcached" session drivers, you may specify a
94 | | cache store that should be used for these sessions. This value must
95 | | correspond with one of the application's configured cache stores.
96 | |
97 | */
98 |
99 | 'store' => null,
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Sweeping Lottery
104 | |--------------------------------------------------------------------------
105 | |
106 | | Some session drivers must manually sweep their storage location to get
107 | | rid of old sessions from storage. Here are the chances that it will
108 | | happen on a given request. By default, the odds are 2 out of 100.
109 | |
110 | */
111 |
112 | 'lottery' => [2, 100],
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Name
117 | |--------------------------------------------------------------------------
118 | |
119 | | Here you may change the name of the cookie used to identify a session
120 | | instance by ID. The name specified here will get used every time a
121 | | new session cookie is created by the framework for every driver.
122 | |
123 | */
124 |
125 | 'cookie' => env(
126 | 'SESSION_COOKIE',
127 | str_slug(env('APP_NAME', 'laravel'), '_').'_session'
128 | ),
129 |
130 | /*
131 | |--------------------------------------------------------------------------
132 | | Session Cookie Path
133 | |--------------------------------------------------------------------------
134 | |
135 | | The session cookie path determines the path for which the cookie will
136 | | be regarded as available. Typically, this will be the root path of
137 | | your application but you are free to change this when necessary.
138 | |
139 | */
140 |
141 | 'path' => '/',
142 |
143 | /*
144 | |--------------------------------------------------------------------------
145 | | Session Cookie Domain
146 | |--------------------------------------------------------------------------
147 | |
148 | | Here you may change the domain of the cookie used to identify a session
149 | | in your application. This will determine which domains the cookie is
150 | | available to in your application. A sensible default has been set.
151 | |
152 | */
153 |
154 | 'domain' => env('SESSION_DOMAIN', null),
155 |
156 | /*
157 | |--------------------------------------------------------------------------
158 | | HTTPS Only Cookies
159 | |--------------------------------------------------------------------------
160 | |
161 | | By setting this option to true, session cookies will only be sent back
162 | | to the server if the browser has a HTTPS connection. This will keep
163 | | the cookie from being sent to you if it can not be done securely.
164 | |
165 | */
166 |
167 | 'secure' => env('SESSION_SECURE_COOKIE', false),
168 |
169 | /*
170 | |--------------------------------------------------------------------------
171 | | HTTP Access Only
172 | |--------------------------------------------------------------------------
173 | |
174 | | Setting this value to true will prevent JavaScript from accessing the
175 | | value of the cookie and the cookie will only be accessible through
176 | | the HTTP protocol. You are free to modify this option if needed.
177 | |
178 | */
179 |
180 | 'http_only' => true,
181 |
182 | /*
183 | |--------------------------------------------------------------------------
184 | | Same-Site Cookies
185 | |--------------------------------------------------------------------------
186 | |
187 | | This option determines how your cookies behave when cross-site requests
188 | | take place, and can be used to mitigate CSRF attacks. By default, we
189 | | do not enable this as other CSRF protection services are in place.
190 | |
191 | | Supported: "lax", "strict"
192 | |
193 | */
194 |
195 | 'same_site' => null,
196 |
197 | ];
198 |
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
17 | resource_path('views'),
18 | ],
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Compiled View Path
23 | |--------------------------------------------------------------------------
24 | |
25 | | This option determines where all the compiled Blade templates will be
26 | | stored for your application. Typically, this is within the storage
27 | | directory. However, as usual, you are free to change this value.
28 | |
29 | */
30 |
31 | 'compiled' => realpath(storage_path('framework/views')),
32 |
33 | ];
34 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 |
--------------------------------------------------------------------------------
/database/factories/UserFactory.php:
--------------------------------------------------------------------------------
1 | define(App\User::class, function (Faker $faker) {
17 | return [
18 | 'name' => $faker->name,
19 | 'email' => $faker->unique()->safeEmail,
20 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
21 | 'remember_token' => str_random(10),
22 | ];
23 | });
24 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_000000_create_users_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('name');
19 | $table->string('email')->unique();
20 | $table->string('password');
21 | $table->rememberToken();
22 | $table->timestamps();
23 | });
24 | }
25 |
26 | /**
27 | * Reverse the migrations.
28 | *
29 | * @return void
30 | */
31 | public function down()
32 | {
33 | Schema::dropIfExists('users');
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_100000_create_password_resets_table.php:
--------------------------------------------------------------------------------
1 | string('email')->index();
18 | $table->string('token');
19 | $table->timestamp('created_at')->nullable();
20 | });
21 | }
22 |
23 | /**
24 | * Reverse the migrations.
25 | *
26 | * @return void
27 | */
28 | public function down()
29 | {
30 | Schema::dropIfExists('password_resets');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/database/migrations/2018_01_08_111156_create_clients_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
13 | $table->string('name');
14 | $table->string('email');
15 | $table->string('phone');
16 | $table->string('image');
17 | $table->timestamps();
18 | });
19 | }
20 |
21 | public function down()
22 | {
23 | Schema::dropIfExists('clients');
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/database/migrations/2018_01_10_084936_create_book.php:
--------------------------------------------------------------------------------
1 | increments('id');
14 | $table->string('name');
15 | $table->string('floor');
16 | $table->string('type');
17 | $table->string('beds');
18 | $table->boolean('status')->default('1');
19 | $table->timestamps();
20 | });
21 | }
22 |
23 | public function down()
24 | {
25 | Schema::dropIfExists('rooms');
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/database/migrations/2018_01_11_110222_create_bookings_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
14 | $table->integer('client_id')->unsigned();
15 | $table->integer('room_id')->unsigned();
16 | $table->integer('user_id')->unsigned();
17 | $table->date('start_date');
18 | $table->date('end_date');
19 | $table->boolean('status')->default(1);
20 |
21 | $table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade');
22 | $table->foreign('room_id')->references('id')->on('rooms')->onDelete('cascade');
23 |
24 | $table->timestamps();
25 | });
26 | }
27 |
28 | public function down()
29 | {
30 | Schema::dropIfExists('bookings');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/database/seeds/BookingsSeeder.php:
--------------------------------------------------------------------------------
1 | '1', 'room_id' => '1', 'user_id'=>1, 'start_date' => '2018-01-24', 'end_date' => '2018-01-25'],
12 | ['client_id' => '1', 'room_id' => '2', 'user_id'=>2, 'start_date' => '2018-01-24', 'end_date' => '2018-01-26'],
13 | ['client_id' => '2', 'room_id' => '3', 'user_id'=>1, 'start_date' => '2018-01-24', 'end_date' => '2018-01-27'],
14 | ['client_id' => '3', 'room_id' => '4', 'user_id'=>2, 'start_date' => '2018-01-24', 'end_date' => '2018-01-28'],
15 | ['client_id' => '3', 'room_id' => '5', 'user_id'=>1, 'start_date' => '2018-01-24', 'end_date' => '2018-01-29'],
16 | ];
17 |
18 | foreach ($bookings as $booking) {
19 | \App\Booking::create($booking);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/database/seeds/ClientsSeeder.php:
--------------------------------------------------------------------------------
1 | 'Ali', 'email' => 'ali@example.com', 'phone' => '+1-202-555-0134', 'image' => 'placeholder.png'],
12 | ['name' => 'Ryan', 'email' => 'ryan@example.com', 'phone' => '+1-202-555-0199', 'image' => 'placeholder.png'],
13 | ['name' => 'Ethan', 'email' => 'ethan@example.com', 'phone' => '+1-202-555-0101', 'image' => 'placeholder.png'],
14 | ['name' => 'John', 'email' => 'john@example.com', 'phone' => '+1-202-555-0150', 'image' => 'placeholder.png'],
15 | ['name' => 'Zoey', 'email' => 'zoey@example.com', 'phone' => '+1-202-555-0104', 'image' => 'placeholder.png'],
16 | ['name' => 'Sarah', 'email' => 'sarah@example.com', 'phone' => '+1-202-555-0148', 'image' => 'placeholder.png'],
17 | ['name' => 'Michelle', 'email' => 'michelle@example.com', 'phone' => '+1-202-555-0228', 'image' => 'placeholder.png'],
18 | ['name' => 'Samantha', 'email' => 'samantha@example.com', 'phone' => '+1-202-555-0548', 'image' => 'placeholder.png'],
19 | ['name' => 'Shahid', 'email' => 'shahid@example.com', 'phone' => '+1-202-555-0111', 'image' => 'placeholder.png'],
20 | ['name' => 'John', 'email' => 'jhon@example.com', 'phone' => '+1-202-555-0121', 'image' => 'placeholder.png'],
21 | ];
22 |
23 | foreach ($clients as $client) {
24 | \App\Client::create($client);
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/database/seeds/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | call(ClientsSeeder::class);
10 | $this->call(RoomsSeeder::class);
11 | $this->call(BookingsSeeder::class);
12 | $this->call(UsersSeeder::class);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/database/seeds/RoomsSeeder.php:
--------------------------------------------------------------------------------
1 | 'Single', 'floor' => 'Ground Floor', 'type' => 'Standard', 'beds' => 'One Bed', 'status' => '0'],
12 | ['name' => 'Double', 'floor' => 'Ground Floor', 'type' => 'Deluxe', 'beds' => 'Two Bed', 'status' => '0'],
13 | ['name' => 'Triple', 'floor' => 'First Floor', 'type' => 'Family Room', 'beds' => 'Three Bed', 'status' => '0'],
14 | ['name' => 'Quad', 'floor' => 'First Floor', 'type' => 'Deluxe', 'beds' => 'Two Bed', 'status' => '0'],
15 | ['name' => 'Queen', 'floor' => 'Second Floor', 'type' => 'Standard', 'beds' => 'One Bed', 'status' => '0'],
16 | ['name' => 'King', 'floor' => 'Second Floor', 'type' => 'Standard', 'beds' => 'One Bed', 'status' => '1'],
17 | ];
18 |
19 | foreach ($rooms as $room) {
20 | \App\Room::create($room);
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/database/seeds/UsersSeeder.php:
--------------------------------------------------------------------------------
1 | 'Alex', 'email' => 'alex@mail.com', 'password' => bcrypt('secret')],
12 | ['name' => 'Javed', 'email' => 'javed@mail.com', 'password' => bcrypt('secret')]
13 | ];
14 |
15 | foreach ($users as $user) {
16 | \App\User::create($user);
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "scripts": {
4 | "dev": "npm run development",
5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6 | "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
7 | "watch-poll": "npm run watch -- --watch-poll",
8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
9 | "prod": "npm run production",
10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
11 | },
12 | "devDependencies": {
13 | "axios": "^0.17",
14 | "bootstrap-sass": "^3.3.7",
15 | "cross-env": "^5.1",
16 | "jquery": "^3.2",
17 | "laravel-mix": "^1.0",
18 | "lodash": "^4.17.4",
19 | "vue": "^2.5.7"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 | ./tests/Feature
14 |
15 |
16 |
17 | ./tests/Unit
18 |
19 |
20 |
21 |
22 | ./app
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/public/.htaccess:
--------------------------------------------------------------------------------
1 |
2 |
3 | Options -MultiViews -Indexes
4 |
5 |
6 | RewriteEngine On
7 |
8 | # Handle Authorization Header
9 | RewriteCond %{HTTP:Authorization} .
10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11 |
12 | # Redirect Trailing Slashes If Not A Folder...
13 | RewriteCond %{REQUEST_FILENAME} !-d
14 | RewriteCond %{REQUEST_URI} (.+)/$
15 | RewriteRule ^ %1 [L,R=301]
16 |
17 | # Handle Front Controller...
18 | RewriteCond %{REQUEST_FILENAME} !-d
19 | RewriteCond %{REQUEST_FILENAME} !-f
20 | RewriteRule ^ index.php [L]
21 |
22 |
--------------------------------------------------------------------------------
/public/css/bootstrap/calendar-disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/bootstrap/calendar-disabled.png
--------------------------------------------------------------------------------
/public/css/bootstrap/calendar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/bootstrap/calendar.png
--------------------------------------------------------------------------------
/public/css/bootstrap/datepicker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/bootstrap/datepicker.png
--------------------------------------------------------------------------------
/public/css/bootstrap/timepicker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/bootstrap/timepicker.png
--------------------------------------------------------------------------------
/public/css/bootstrap/zebra_datepicker.css:
--------------------------------------------------------------------------------
1 | .Zebra_DatePicker {
2 | position: absolute;
3 | background: #FFF;
4 | border: 1px solid #999;
5 | z-index: 1200;
6 | top: 0;
7 | padding: 5px;
8 | }
9 |
10 | .Zebra_DatePicker *,
11 | .Zebra_DatePicker *:after,
12 | .Zebra_DatePicker *:before {
13 | -moz-box-sizing: content-box !important;
14 | -webkit-box-sizing: content-box !important;
15 | box-sizing: content-box !important;
16 | }
17 |
18 | .Zebra_DatePicker * {
19 | margin: 0;
20 | padding: 0;
21 | color: #373737;
22 | background: transparent;
23 | border: none;
24 | }
25 |
26 | .Zebra_DatePicker.dp_visible {
27 | visibility: visible;
28 | filter: alpha(opacity=100);
29 | -khtml-opacity: 1;
30 | -moz-opacity: 1;
31 | opacity: 1;
32 | transition: opacity 0.2s ease-in-out;
33 | }
34 |
35 | .Zebra_DatePicker.dp_hidden {
36 | visibility: hidden;
37 | filter: alpha(opacity=0);
38 | -khtml-opacity: 0;
39 | -moz-opacity: 0;
40 | opacity: 0;
41 | }
42 |
43 | .Zebra_DatePicker .dp_unavailable {
44 | display: none;
45 | }
46 |
47 | .Zebra_DatePicker table {
48 | border-collapse: collapse;
49 | border-spacing: 0;
50 | width: auto;
51 | table-layout: auto;
52 | }
53 |
54 | .Zebra_DatePicker table th, .Zebra_DatePicker table td {
55 | text-align: center;
56 | padding: 5px 0;
57 | }
58 |
59 | .Zebra_DatePicker table td {
60 | cursor: pointer;
61 | }
62 |
63 | .Zebra_DatePicker table td.dp_disabled, .Zebra_DatePicker table td.dp_not_in_month, .Zebra_DatePicker table td.dp_not_in_month_selectable, .Zebra_DatePicker table td.dp_weekend_disabled {
64 | color: #DEDEDE;
65 | cursor: default;
66 | }
67 |
68 | .Zebra_DatePicker table td.dp_disabled_current {
69 | color: #3A87AD !important;
70 | }
71 |
72 | .Zebra_DatePicker table td.dp_not_in_month_selectable {
73 | cursor: pointer;
74 | }
75 |
76 | .Zebra_DatePicker table td.dp_week_number {
77 | font-weight: bold;
78 | cursor: text;
79 | }
80 |
81 | .Zebra_DatePicker table td.dp_current {
82 | color: #3A87AD;
83 | }
84 |
85 | .Zebra_DatePicker table td.dp_selected {
86 | background: #039;
87 | color: #FFF;
88 | }
89 |
90 | .Zebra_DatePicker table td.dp_hover {
91 | background: #DEDEDE;
92 | }
93 |
94 | .Zebra_DatePicker .dp_daypicker td, .Zebra_DatePicker .dp_daypicker th,
95 | .Zebra_DatePicker .dp_monthpicker td,
96 | .Zebra_DatePicker .dp_monthpicker th,
97 | .Zebra_DatePicker .dp_yearpicker td,
98 | .Zebra_DatePicker .dp_yearpicker th,
99 | .Zebra_DatePicker .dp_timepicker td,
100 | .Zebra_DatePicker .dp_timepicker th {
101 | width: 30px;
102 | }
103 |
104 | .Zebra_DatePicker .dp_header .dp_hover,
105 | .Zebra_DatePicker .dp_footer .dp_hover {
106 | background: #DEDEDE;
107 | color: #373737;
108 | }
109 |
110 | .Zebra_DatePicker .dp_header {
111 | margin-bottom: 3px;
112 | }
113 |
114 | .Zebra_DatePicker .dp_header .dp_previous,
115 | .Zebra_DatePicker .dp_header .dp_next {
116 | width: 30px;
117 | }
118 |
119 | .Zebra_DatePicker .dp_header .dp_caption {
120 | font-weight: bold;
121 | }
122 |
123 | .Zebra_DatePicker .dp_monthpicker td,
124 | .Zebra_DatePicker .dp_yearpicker td {
125 | width: 33.3333%;
126 | }
127 |
128 | .Zebra_DatePicker .dp_timepicker td {
129 | width: 25%;
130 | }
131 |
132 | .Zebra_DatePicker .dp_timepicker td.dp_disabled {
133 | color: #000;
134 | }
135 |
136 | .Zebra_DatePicker .dp_footer {
137 | margin-top: 3px;
138 | }
139 |
140 | .Zebra_DatePicker .dp_footer td.dp_today, .Zebra_DatePicker .dp_footer td.dp_clear, .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler {
141 | padding: 3px;
142 | }
143 |
144 | .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler {
145 | background-repeat: no-repeat;
146 | background-position: center center;
147 | padding-left: 13px;
148 | padding-right: 13px;
149 | background-image: url(timepicker.png);
150 | }
151 |
152 | .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler_calendar {
153 | background-image: url(datepicker.png);
154 | }
155 |
156 | button.Zebra_DatePicker_Icon {
157 | display: block;
158 | position: absolute;
159 | width: 16px;
160 | height: 16px;
161 | background: url(calendar.png) no-repeat left top;
162 | text-indent: -9000px;
163 | border: none;
164 | cursor: pointer;
165 | padding: 0;
166 | line-height: 0;
167 | margin: 0 0 0 3px;
168 | }
169 |
170 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Disabled {
171 | background-image: url(calendar-disabled.png);
172 | }
173 |
174 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Right {
175 | margin: 0 3px 0 0;
176 | }
177 |
178 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Left {
179 | margin: 0 0 0 3px;
180 | }
181 |
182 | .Zebra_DatePicker,
183 | .Zebra_DatePicker .dp_header .dp_hover,
184 | .Zebra_DatePicker .dp_footer .dp_hover,
185 | .Zebra_DatePicker td.dp_selected,
186 | .Zebra_DatePicker .dp_footer .dp_hover,
187 | .Zebra_DatePicker td.dp_hover {
188 | -webkit-border-radius: 5px;
189 | -moz-border-radius: 5px;
190 | border-radius: 5px;
191 | }
192 |
--------------------------------------------------------------------------------
/public/css/bootstrap/zebra_datepicker.min.css:
--------------------------------------------------------------------------------
1 | .Zebra_DatePicker{position:absolute;background:#FFF;border:1px solid #999;z-index:1200;top:0;padding:5px}.Zebra_DatePicker *,.Zebra_DatePicker *:after,.Zebra_DatePicker *:before{-moz-box-sizing:content-box !important;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}.Zebra_DatePicker *{margin:0;padding:0;color:#373737;background:transparent;border:none}.Zebra_DatePicker.dp_visible{visibility:visible;filter:alpha(opacity=100);-khtml-opacity:1;-moz-opacity:1;opacity:1;transition:opacity 0.2s ease-in-out}.Zebra_DatePicker.dp_hidden{visibility:hidden;filter:alpha(opacity=0);-khtml-opacity:0;-moz-opacity:0;opacity:0}.Zebra_DatePicker .dp_unavailable{display:none}.Zebra_DatePicker table{border-collapse:collapse;border-spacing:0;width:auto;table-layout:auto}.Zebra_DatePicker table th,.Zebra_DatePicker table td{text-align:center;padding:5px 0}.Zebra_DatePicker table td{cursor:pointer}.Zebra_DatePicker table td.dp_disabled,.Zebra_DatePicker table td.dp_not_in_month,.Zebra_DatePicker table td.dp_not_in_month_selectable,.Zebra_DatePicker table td.dp_weekend_disabled{color:#DEDEDE;cursor:default}.Zebra_DatePicker table td.dp_disabled_current{color:#3A87AD !important}.Zebra_DatePicker table td.dp_not_in_month_selectable{cursor:pointer}.Zebra_DatePicker table td.dp_week_number{font-weight:bold;cursor:text}.Zebra_DatePicker table td.dp_current{color:#3A87AD}.Zebra_DatePicker table td.dp_selected{background:#039;color:#FFF}.Zebra_DatePicker table td.dp_hover{background:#DEDEDE}.Zebra_DatePicker .dp_daypicker td,.Zebra_DatePicker .dp_daypicker th,.Zebra_DatePicker .dp_monthpicker td,.Zebra_DatePicker .dp_monthpicker th,.Zebra_DatePicker .dp_yearpicker td,.Zebra_DatePicker .dp_yearpicker th,.Zebra_DatePicker .dp_timepicker td,.Zebra_DatePicker .dp_timepicker th{width:30px}.Zebra_DatePicker .dp_header .dp_hover,.Zebra_DatePicker .dp_footer .dp_hover{background:#DEDEDE;color:#373737}.Zebra_DatePicker .dp_header{margin-bottom:3px}.Zebra_DatePicker .dp_header .dp_previous,.Zebra_DatePicker .dp_header .dp_next{width:30px}.Zebra_DatePicker .dp_header .dp_caption{font-weight:bold}.Zebra_DatePicker .dp_monthpicker td,.Zebra_DatePicker .dp_yearpicker td{width:33.3333%}.Zebra_DatePicker .dp_timepicker td{width:25%}.Zebra_DatePicker .dp_timepicker td.dp_disabled{color:#000}.Zebra_DatePicker .dp_footer{margin-top:3px}.Zebra_DatePicker .dp_footer td.dp_today,.Zebra_DatePicker .dp_footer td.dp_clear,.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler{padding:3px}.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler{background-repeat:no-repeat;background-position:center center;padding-left:13px;padding-right:13px;background-image:url(timepicker.png)}.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler_calendar{background-image:url(datepicker.png)}button.Zebra_DatePicker_Icon{display:block;position:absolute;width:16px;height:16px;background:url(calendar.png) no-repeat left top;text-indent:-9000px;border:none;cursor:pointer;padding:0;line-height:0;margin:0 0 0 3px}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Disabled{background-image:url(calendar-disabled.png)}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Right{margin:0 3px 0 0}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Left{margin:0 0 0 3px}.Zebra_DatePicker,.Zebra_DatePicker .dp_header .dp_hover,.Zebra_DatePicker .dp_footer .dp_hover,.Zebra_DatePicker td.dp_selected,.Zebra_DatePicker .dp_footer .dp_hover,.Zebra_DatePicker td.dp_hover{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}
2 |
--------------------------------------------------------------------------------
/public/css/default/calendar-disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/default/calendar-disabled.png
--------------------------------------------------------------------------------
/public/css/default/calendar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/default/calendar.png
--------------------------------------------------------------------------------
/public/css/default/datepicker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/default/datepicker.png
--------------------------------------------------------------------------------
/public/css/default/timepicker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/default/timepicker.png
--------------------------------------------------------------------------------
/public/css/default/zebra_datepicker.css:
--------------------------------------------------------------------------------
1 | .Zebra_DatePicker {
2 | position: absolute;
3 | background: #666;
4 | z-index: 1200;
5 | top: 0;
6 | -webkit-border-radius: 5px;
7 | -moz-border-radius: 5px;
8 | border: 3px solid #666;
9 | border-radius: 5px;
10 | font-family: Tahoma, Arial, Helvetica, sans-serif;
11 | font-size: 13px;
12 | }
13 |
14 | .Zebra_DatePicker *,
15 | .Zebra_DatePicker *:after,
16 | .Zebra_DatePicker *:before {
17 | -moz-box-sizing: content-box !important;
18 | -webkit-box-sizing: content-box !important;
19 | box-sizing: content-box !important;
20 | }
21 |
22 | .Zebra_DatePicker * {
23 | margin: 0;
24 | padding: 0;
25 | color: #000;
26 | background: transparent;
27 | border: none;
28 | }
29 |
30 | .Zebra_DatePicker.dp_visible {
31 | visibility: visible;
32 | filter: alpha(opacity=100);
33 | -khtml-opacity: 1;
34 | -moz-opacity: 1;
35 | opacity: 1;
36 | transition: opacity 0.2s ease-in-out;
37 | }
38 |
39 | .Zebra_DatePicker.dp_hidden {
40 | visibility: hidden;
41 | filter: alpha(opacity=0);
42 | -khtml-opacity: 0;
43 | -moz-opacity: 0;
44 | opacity: 0;
45 | }
46 |
47 | .Zebra_DatePicker .dp_unavailable {
48 | display: none;
49 | }
50 |
51 | .Zebra_DatePicker table {
52 | border-collapse: collapse;
53 | border-spacing: 0;
54 | width: auto;
55 | table-layout: auto;
56 | }
57 |
58 | .Zebra_DatePicker table th, .Zebra_DatePicker table td {
59 | text-align: center;
60 | padding: 5px 0;
61 | }
62 |
63 | .Zebra_DatePicker table td {
64 | cursor: pointer;
65 | }
66 |
67 | .Zebra_DatePicker table td.dp_disabled, .Zebra_DatePicker table td.dp_not_in_month, .Zebra_DatePicker table td.dp_not_in_month_selectable {
68 | background: #F3F3F3;
69 | color: #CDCDCD;
70 | cursor: default;
71 | }
72 |
73 | .Zebra_DatePicker table td.dp_disabled_current {
74 | color: #E38585 !important;
75 | }
76 |
77 | .Zebra_DatePicker table td.dp_not_in_month_selectable {
78 | cursor: pointer;
79 | }
80 |
81 | .Zebra_DatePicker table td.dp_week_number {
82 | background: #FFCC33;
83 | color: #000;
84 | font-weight: bold;
85 | cursor: text;
86 | }
87 |
88 | .Zebra_DatePicker table td.dp_weekend {
89 | background: #D8D8D8;
90 | }
91 |
92 | .Zebra_DatePicker table td.dp_weekend_disabled {
93 | color: #CCC;
94 | cursor: default;
95 | }
96 |
97 | .Zebra_DatePicker table td.dp_current {
98 | color: #C40000;
99 | }
100 |
101 | .Zebra_DatePicker table td.dp_selected {
102 | background: #5A4B4B;
103 | color: #FFF;
104 | }
105 |
106 | .Zebra_DatePicker table td.dp_hover {
107 | background: #482424;
108 | color: #FFF;
109 | }
110 |
111 | .Zebra_DatePicker .dp_daypicker td, .Zebra_DatePicker .dp_daypicker th,
112 | .Zebra_DatePicker .dp_monthpicker td,
113 | .Zebra_DatePicker .dp_monthpicker th,
114 | .Zebra_DatePicker .dp_yearpicker td,
115 | .Zebra_DatePicker .dp_yearpicker th,
116 | .Zebra_DatePicker .dp_timepicker td,
117 | .Zebra_DatePicker .dp_timepicker th {
118 | background: #E8E8E8;
119 | width: 30px;
120 | border: 1px solid #7BACD2;
121 | }
122 |
123 | .Zebra_DatePicker .dp_header .dp_hover,
124 | .Zebra_DatePicker .dp_footer .dp_hover {
125 | background: #222;
126 | color: #FFF;
127 | -webkit-border-radius: 5px;
128 | -moz-border-radius: 5px;
129 | border-radius: 5px;
130 | }
131 |
132 | .Zebra_DatePicker .dp_header {
133 | margin-bottom: 3px;
134 | }
135 |
136 | .Zebra_DatePicker .dp_header td {
137 | color: #FFF;
138 | }
139 |
140 | .Zebra_DatePicker .dp_header .dp_previous,
141 | .Zebra_DatePicker .dp_header .dp_next {
142 | width: 30px;
143 | }
144 |
145 | .Zebra_DatePicker .dp_header .dp_caption {
146 | font-weight: bold;
147 | }
148 |
149 | .Zebra_DatePicker .dp_daypicker th {
150 | background: #FFCC33;
151 | }
152 |
153 | .Zebra_DatePicker .dp_monthpicker td,
154 | .Zebra_DatePicker .dp_yearpicker td {
155 | width: 33.3333%;
156 | }
157 |
158 | .Zebra_DatePicker .dp_timepicker td {
159 | width: 25%;
160 | }
161 |
162 | .Zebra_DatePicker .dp_timepicker td.dp_disabled {
163 | color: #000;
164 | }
165 |
166 | .Zebra_DatePicker .dp_footer {
167 | margin-top: 3px;
168 | }
169 |
170 | .Zebra_DatePicker .dp_footer td {
171 | color: #FFF;
172 | }
173 |
174 | .Zebra_DatePicker .dp_footer td.dp_today, .Zebra_DatePicker .dp_footer td.dp_clear, .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler {
175 | padding: 3px;
176 | }
177 |
178 | .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler {
179 | background-repeat: no-repeat;
180 | background-position: center center;
181 | padding-left: 13px;
182 | padding-right: 13px;
183 | background-image: url(timepicker.png);
184 | }
185 |
186 | .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler_calendar {
187 | background-image: url(datepicker.png);
188 | }
189 |
190 | button.Zebra_DatePicker_Icon {
191 | display: block;
192 | position: absolute;
193 | width: 16px;
194 | height: 16px;
195 | background: url(calendar.png) no-repeat left top;
196 | text-indent: -9000px;
197 | border: none;
198 | cursor: pointer;
199 | padding: 0;
200 | line-height: 0;
201 | margin: 0 0 0 3px;
202 | }
203 |
204 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Disabled {
205 | background-image: url(calendar-disabled.png);
206 | }
207 |
208 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Right {
209 | margin: 0 3px 0 0;
210 | }
211 |
212 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Left {
213 | margin: 0 0 0 3px;
214 | }
215 |
--------------------------------------------------------------------------------
/public/css/default/zebra_datepicker.min.css:
--------------------------------------------------------------------------------
1 | .Zebra_DatePicker{position:absolute;background:#666;z-index:1200;top:0;-webkit-border-radius:5px;-moz-border-radius:5px;border:3px solid #666;border-radius:5px;font-family:Tahoma, Arial, Helvetica, sans-serif;font-size:13px}.Zebra_DatePicker *,.Zebra_DatePicker *:after,.Zebra_DatePicker *:before{-moz-box-sizing:content-box !important;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}.Zebra_DatePicker *{margin:0;padding:0;color:#000;background:transparent;border:none}.Zebra_DatePicker.dp_visible{visibility:visible;filter:alpha(opacity=100);-khtml-opacity:1;-moz-opacity:1;opacity:1;transition:opacity 0.2s ease-in-out}.Zebra_DatePicker.dp_hidden{visibility:hidden;filter:alpha(opacity=0);-khtml-opacity:0;-moz-opacity:0;opacity:0}.Zebra_DatePicker .dp_unavailable{display:none}.Zebra_DatePicker table{border-collapse:collapse;border-spacing:0;width:auto;table-layout:auto}.Zebra_DatePicker table th,.Zebra_DatePicker table td{text-align:center;padding:5px 0}.Zebra_DatePicker table td{cursor:pointer}.Zebra_DatePicker table td.dp_disabled,.Zebra_DatePicker table td.dp_not_in_month,.Zebra_DatePicker table td.dp_not_in_month_selectable{background:#F3F3F3;color:#CDCDCD;cursor:default}.Zebra_DatePicker table td.dp_disabled_current{color:#E38585 !important}.Zebra_DatePicker table td.dp_not_in_month_selectable{cursor:pointer}.Zebra_DatePicker table td.dp_week_number{background:#FFCC33;color:#000;font-weight:bold;cursor:text}.Zebra_DatePicker table td.dp_weekend{background:#D8D8D8}.Zebra_DatePicker table td.dp_weekend_disabled{color:#CCC;cursor:default}.Zebra_DatePicker table td.dp_current{color:#C40000}.Zebra_DatePicker table td.dp_selected{background:#5A4B4B;color:#FFF}.Zebra_DatePicker table td.dp_hover{background:#482424;color:#FFF}.Zebra_DatePicker .dp_daypicker td,.Zebra_DatePicker .dp_daypicker th,.Zebra_DatePicker .dp_monthpicker td,.Zebra_DatePicker .dp_monthpicker th,.Zebra_DatePicker .dp_yearpicker td,.Zebra_DatePicker .dp_yearpicker th,.Zebra_DatePicker .dp_timepicker td,.Zebra_DatePicker .dp_timepicker th{background:#E8E8E8;width:30px;border:1px solid #7BACD2}.Zebra_DatePicker .dp_header .dp_hover,.Zebra_DatePicker .dp_footer .dp_hover{background:#222;color:#FFF;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.Zebra_DatePicker .dp_header{margin-bottom:3px}.Zebra_DatePicker .dp_header td{color:#FFF}.Zebra_DatePicker .dp_header .dp_previous,.Zebra_DatePicker .dp_header .dp_next{width:30px}.Zebra_DatePicker .dp_header .dp_caption{font-weight:bold}.Zebra_DatePicker .dp_daypicker th{background:#FFCC33}.Zebra_DatePicker .dp_monthpicker td,.Zebra_DatePicker .dp_yearpicker td{width:33.3333%}.Zebra_DatePicker .dp_timepicker td{width:25%}.Zebra_DatePicker .dp_timepicker td.dp_disabled{color:#000}.Zebra_DatePicker .dp_footer{margin-top:3px}.Zebra_DatePicker .dp_footer td{color:#FFF}.Zebra_DatePicker .dp_footer td.dp_today,.Zebra_DatePicker .dp_footer td.dp_clear,.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler{padding:3px}.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler{background-repeat:no-repeat;background-position:center center;padding-left:13px;padding-right:13px;background-image:url(timepicker.png)}.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler_calendar{background-image:url(datepicker.png)}button.Zebra_DatePicker_Icon{display:block;position:absolute;width:16px;height:16px;background:url(calendar.png) no-repeat left top;text-indent:-9000px;border:none;cursor:pointer;padding:0;line-height:0;margin:0 0 0 3px}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Disabled{background-image:url(calendar-disabled.png)}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Right{margin:0 3px 0 0}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Left{margin:0 0 0 3px}
2 |
--------------------------------------------------------------------------------
/public/css/metallic/calendar-disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/calendar-disabled.png
--------------------------------------------------------------------------------
/public/css/metallic/calendar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/calendar.png
--------------------------------------------------------------------------------
/public/css/metallic/datepicker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/datepicker.png
--------------------------------------------------------------------------------
/public/css/metallic/default-date.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/default-date.png
--------------------------------------------------------------------------------
/public/css/metallic/disabled-date.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/disabled-date.png
--------------------------------------------------------------------------------
/public/css/metallic/header.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/header.png
--------------------------------------------------------------------------------
/public/css/metallic/selected-date.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/selected-date.png
--------------------------------------------------------------------------------
/public/css/metallic/timepicker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/css/metallic/timepicker.png
--------------------------------------------------------------------------------
/public/css/metallic/zebra_datepicker.css:
--------------------------------------------------------------------------------
1 | .Zebra_DatePicker {
2 | position: absolute;
3 | background: #373737;
4 | border: 3px solid #373737;
5 | z-index: 1200;
6 | top: 0;
7 | -webkit-border-radius: 5px;
8 | -moz-border-radius: 5px;
9 | border-radius: 5px;
10 | font-family: Geneva, 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
11 | font-size: 13px;
12 | }
13 |
14 | .Zebra_DatePicker *,
15 | .Zebra_DatePicker *:after,
16 | .Zebra_DatePicker *:before {
17 | -moz-box-sizing: content-box !important;
18 | -webkit-box-sizing: content-box !important;
19 | box-sizing: content-box !important;
20 | }
21 |
22 | .Zebra_DatePicker * {
23 | margin: 0;
24 | padding: 0;
25 | color: #666;
26 | background: transparent;
27 | border: none;
28 | }
29 |
30 | .Zebra_DatePicker.dp_visible {
31 | visibility: visible;
32 | filter: alpha(opacity=100);
33 | -khtml-opacity: 1;
34 | -moz-opacity: 1;
35 | opacity: 1;
36 | transition: opacity 0.2s ease-in-out;
37 | }
38 |
39 | .Zebra_DatePicker.dp_hidden {
40 | visibility: hidden;
41 | filter: alpha(opacity=0);
42 | -khtml-opacity: 0;
43 | -moz-opacity: 0;
44 | opacity: 0;
45 | }
46 |
47 | .Zebra_DatePicker .dp_unavailable {
48 | display: none;
49 | }
50 |
51 | .Zebra_DatePicker table {
52 | border-collapse: collapse;
53 | border-spacing: 0;
54 | width: auto;
55 | table-layout: auto;
56 | }
57 |
58 | .Zebra_DatePicker table th, .Zebra_DatePicker table td {
59 | text-align: center;
60 | padding: 5px 0;
61 | }
62 |
63 | .Zebra_DatePicker table td {
64 | cursor: pointer;
65 | }
66 |
67 | .Zebra_DatePicker table td.dp_disabled, .Zebra_DatePicker table td.dp_not_in_month, .Zebra_DatePicker table td.dp_not_in_month_selectable {
68 | background: #ECECEC url(disabled-date.png) repeat-x top;
69 | color: #CCC;
70 | cursor: default;
71 | }
72 |
73 | .Zebra_DatePicker table td.dp_not_in_month_selectable {
74 | cursor: pointer;
75 | }
76 |
77 | .Zebra_DatePicker table td.dp_disabled_current {
78 | color: #E38585 !important;
79 | }
80 |
81 | .Zebra_DatePicker table td.dp_week_number {
82 | background: #F1F1F1;
83 | color: #666;
84 | font-weight: bold;
85 | }
86 |
87 | .Zebra_DatePicker table td.dp_weekend {
88 | background: red url(default-date.png) repeat-x top;
89 | color: #666;
90 | }
91 |
92 | .Zebra_DatePicker table td.dp_weekend_disabled {
93 | color: #CCC;
94 | cursor: default;
95 | }
96 |
97 | .Zebra_DatePicker table td.dp_current {
98 | color: #E26261;
99 | }
100 |
101 | .Zebra_DatePicker table td.dp_selected {
102 | background: #E26262;
103 | color: #E0E0E0;
104 | }
105 |
106 | .Zebra_DatePicker table td.dp_hover {
107 | background: #67AABB url(selected-date.png) repeat-x top;
108 | color: #FFF;
109 | }
110 |
111 | .Zebra_DatePicker .dp_daypicker td, .Zebra_DatePicker .dp_daypicker th,
112 | .Zebra_DatePicker .dp_monthpicker td,
113 | .Zebra_DatePicker .dp_monthpicker th,
114 | .Zebra_DatePicker .dp_yearpicker td,
115 | .Zebra_DatePicker .dp_yearpicker th,
116 | .Zebra_DatePicker .dp_timepicker td,
117 | .Zebra_DatePicker .dp_timepicker th {
118 | background: #DEDEDE url(default-date.png) repeat-x top;
119 | width: 30px;
120 | border: 1px solid #BBB;
121 | }
122 |
123 | .Zebra_DatePicker .dp_header .dp_hover,
124 | .Zebra_DatePicker .dp_footer .dp_hover {
125 | background-color: #67AABB;
126 | color: #FFF;
127 | -webkit-border-radius: 5px;
128 | -moz-border-radius: 5px;
129 | border-radius: 5px;
130 | }
131 |
132 | .Zebra_DatePicker .dp_header {
133 | margin-bottom: 3px;
134 | }
135 |
136 | .Zebra_DatePicker .dp_header td {
137 | color: #E0E0E0;
138 | }
139 |
140 | .Zebra_DatePicker .dp_header .dp_previous,
141 | .Zebra_DatePicker .dp_header .dp_next {
142 | width: 30px;
143 | }
144 |
145 | .Zebra_DatePicker .dp_header .dp_caption {
146 | font-weight: bold;
147 | }
148 |
149 | .Zebra_DatePicker .dp_daypicker th {
150 | background: #F1F1F1;
151 | }
152 |
153 | .Zebra_DatePicker .dp_monthpicker td,
154 | .Zebra_DatePicker .dp_yearpicker td {
155 | width: 33.3333%;
156 | }
157 |
158 | .Zebra_DatePicker .dp_timepicker td {
159 | width: 25%;
160 | }
161 |
162 | .Zebra_DatePicker .dp_timepicker td.dp_disabled {
163 | color: #000;
164 | }
165 |
166 | .Zebra_DatePicker .dp_footer {
167 | margin-top: 3px;
168 | }
169 |
170 | .Zebra_DatePicker .dp_footer td {
171 | color: #FFF;
172 | }
173 |
174 | .Zebra_DatePicker .dp_footer td.dp_today, .Zebra_DatePicker .dp_footer td.dp_clear, .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler {
175 | color: #E0E0E0;
176 | padding: 3px;
177 | }
178 |
179 | .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler {
180 | background-repeat: no-repeat;
181 | background-position: center center;
182 | padding-left: 13px;
183 | padding-right: 13px;
184 | background-image: url(timepicker.png);
185 | }
186 |
187 | .Zebra_DatePicker .dp_footer td.dp_timepicker_toggler_calendar {
188 | background-image: url(datepicker.png);
189 | }
190 |
191 | button.Zebra_DatePicker_Icon {
192 | display: block;
193 | position: absolute;
194 | width: 16px;
195 | height: 16px;
196 | background: url(calendar.png) no-repeat left top;
197 | text-indent: -9000px;
198 | border: none;
199 | cursor: pointer;
200 | padding: 0;
201 | line-height: 0;
202 | margin: 0 0 0 3px;
203 | }
204 |
205 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Disabled {
206 | background-image: url(calendar-disabled.png);
207 | }
208 |
209 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Right {
210 | margin: 0 3px 0 0;
211 | }
212 |
213 | button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Left {
214 | margin: 0 0 0 3px;
215 | }
216 |
--------------------------------------------------------------------------------
/public/css/metallic/zebra_datepicker.min.css:
--------------------------------------------------------------------------------
1 | .Zebra_DatePicker{position:absolute;background:#373737;border:3px solid #373737;z-index:1200;top:0;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;font-family:Geneva, 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;font-size:13px}.Zebra_DatePicker *,.Zebra_DatePicker *:after,.Zebra_DatePicker *:before{-moz-box-sizing:content-box !important;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}.Zebra_DatePicker *{margin:0;padding:0;color:#666;background:transparent;border:none}.Zebra_DatePicker.dp_visible{visibility:visible;filter:alpha(opacity=100);-khtml-opacity:1;-moz-opacity:1;opacity:1;transition:opacity 0.2s ease-in-out}.Zebra_DatePicker.dp_hidden{visibility:hidden;filter:alpha(opacity=0);-khtml-opacity:0;-moz-opacity:0;opacity:0}.Zebra_DatePicker .dp_unavailable{display:none}.Zebra_DatePicker table{border-collapse:collapse;border-spacing:0;width:auto;table-layout:auto}.Zebra_DatePicker table th,.Zebra_DatePicker table td{text-align:center;padding:5px 0}.Zebra_DatePicker table td{cursor:pointer}.Zebra_DatePicker table td.dp_disabled,.Zebra_DatePicker table td.dp_not_in_month,.Zebra_DatePicker table td.dp_not_in_month_selectable{background:#ECECEC url(disabled-date.png) repeat-x top;color:#CCC;cursor:default}.Zebra_DatePicker table td.dp_not_in_month_selectable{cursor:pointer}.Zebra_DatePicker table td.dp_disabled_current{color:#E38585 !important}.Zebra_DatePicker table td.dp_week_number{background:#F1F1F1;color:#666;font-weight:bold}.Zebra_DatePicker table td.dp_weekend{background:red url(default-date.png) repeat-x top;color:#666}.Zebra_DatePicker table td.dp_weekend_disabled{color:#CCC;cursor:default}.Zebra_DatePicker table td.dp_current{color:#E26261}.Zebra_DatePicker table td.dp_selected{background:#E26262;color:#E0E0E0}.Zebra_DatePicker table td.dp_hover{background:#67AABB url(selected-date.png) repeat-x top;color:#FFF}.Zebra_DatePicker .dp_daypicker td,.Zebra_DatePicker .dp_daypicker th,.Zebra_DatePicker .dp_monthpicker td,.Zebra_DatePicker .dp_monthpicker th,.Zebra_DatePicker .dp_yearpicker td,.Zebra_DatePicker .dp_yearpicker th,.Zebra_DatePicker .dp_timepicker td,.Zebra_DatePicker .dp_timepicker th{background:#DEDEDE url(default-date.png) repeat-x top;width:30px;border:1px solid #BBB}.Zebra_DatePicker .dp_header .dp_hover,.Zebra_DatePicker .dp_footer .dp_hover{background-color:#67AABB;color:#FFF;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.Zebra_DatePicker .dp_header{margin-bottom:3px}.Zebra_DatePicker .dp_header td{color:#E0E0E0}.Zebra_DatePicker .dp_header .dp_previous,.Zebra_DatePicker .dp_header .dp_next{width:30px}.Zebra_DatePicker .dp_header .dp_caption{font-weight:bold}.Zebra_DatePicker .dp_daypicker th{background:#F1F1F1}.Zebra_DatePicker .dp_monthpicker td,.Zebra_DatePicker .dp_yearpicker td{width:33.3333%}.Zebra_DatePicker .dp_timepicker td{width:25%}.Zebra_DatePicker .dp_timepicker td.dp_disabled{color:#000}.Zebra_DatePicker .dp_footer{margin-top:3px}.Zebra_DatePicker .dp_footer td{color:#FFF}.Zebra_DatePicker .dp_footer td.dp_today,.Zebra_DatePicker .dp_footer td.dp_clear,.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler{color:#E0E0E0;padding:3px}.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler{background-repeat:no-repeat;background-position:center center;padding-left:13px;padding-right:13px;background-image:url(timepicker.png)}.Zebra_DatePicker .dp_footer td.dp_timepicker_toggler_calendar{background-image:url(datepicker.png)}button.Zebra_DatePicker_Icon{display:block;position:absolute;width:16px;height:16px;background:url(calendar.png) no-repeat left top;text-indent:-9000px;border:none;cursor:pointer;padding:0;line-height:0;margin:0 0 0 3px}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Disabled{background-image:url(calendar-disabled.png)}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Right{margin:0 3px 0 0}button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside_Left{margin:0 0 0 3px}
2 |
--------------------------------------------------------------------------------
/public/css/style.css:
--------------------------------------------------------------------------------
1 | .thumb{
2 | margin: 10px 5px 0 0;
3 | width: 100px;
4 | }
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/favicon.ico
--------------------------------------------------------------------------------
/public/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-Bold.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-BoldItalic.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-ExtraBold.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-ExtraBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-ExtraBoldItalic.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-Italic.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-Light.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-LightItalic.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-Regular.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-SemiBold.ttf
--------------------------------------------------------------------------------
/public/fonts/OpenSans-SemiBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/OpenSans-SemiBoldItalic.ttf
--------------------------------------------------------------------------------
/public/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/public/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/public/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/public/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/public/index.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | define('LARAVEL_START', microtime(true));
11 |
12 | /*
13 | |--------------------------------------------------------------------------
14 | | Register The Auto Loader
15 | |--------------------------------------------------------------------------
16 | |
17 | | Composer provides a convenient, automatically generated class loader for
18 | | our application. We just need to utilize it! We'll simply require it
19 | | into the script here so that we don't have to worry about manual
20 | | loading any of our classes later on. It feels great to relax.
21 | |
22 | */
23 |
24 | require __DIR__.'/../vendor/autoload.php';
25 |
26 | /*
27 | |--------------------------------------------------------------------------
28 | | Turn On The Lights
29 | |--------------------------------------------------------------------------
30 | |
31 | | We need to illuminate PHP development, so let us turn on the lights.
32 | | This bootstraps the framework and gets it ready for use, then it
33 | | will load up this application so that we can run it and send
34 | | the responses back to the browser and delight our users.
35 | |
36 | */
37 |
38 | $app = require_once __DIR__.'/../bootstrap/app.php';
39 |
40 | /*
41 | |--------------------------------------------------------------------------
42 | | Run The Application
43 | |--------------------------------------------------------------------------
44 | |
45 | | Once we have the application, we can handle the incoming request
46 | | through the kernel, and send the associated response back to
47 | | the client's browser allowing them to enjoy the creative
48 | | and wonderful application we have prepared for them.
49 | |
50 | */
51 |
52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
53 |
54 | $response = $kernel->handle(
55 | $request = Illuminate\Http\Request::capture()
56 | );
57 |
58 | $response->send();
59 |
60 | $kernel->terminate($request, $response);
61 |
--------------------------------------------------------------------------------
/public/js/script.js:
--------------------------------------------------------------------------------
1 | // Image thumbnail
2 | $(document).ready(function () {
3 | $('#image').on('change', function () { //on file input change
4 | if (window.File && window.FileReader && window.FileList && window.Blob) //check File API supported browser
5 | {
6 | $('#thumb-output').html(''); //clear html of output element
7 | var data = $(this)[0].files; //this file data
8 |
9 | $.each(data, function (index, file) { //loop though each file
10 | if (/(\.|\/)(gif|jpe?g|png)$/i.test(file.type)) { //check supported file type
11 | var fRead = new FileReader(); //new filereader
12 | fRead.onload = (function (file) { //trigger function on successful read
13 | return function (e) {
14 | var img = $(' ').addClass('thumb').attr('src', e.target.result); //create image element
15 | $('#thumb-output').append(img); //append image to output element
16 | };
17 | })(file);
18 | fRead.readAsDataURL(file); //URL representing the file's data.
19 | }
20 | });
21 |
22 | } else {
23 | alert("Your browser doesn't support File API!"); //if File API is absent
24 | }
25 | });
26 | });
--------------------------------------------------------------------------------
/public/less/animated.less:
--------------------------------------------------------------------------------
1 | // Animated Icons
2 | // --------------------------
3 |
4 | .@{fa-css-prefix}-spin {
5 | -webkit-animation: fa-spin 2s infinite linear;
6 | animation: fa-spin 2s infinite linear;
7 | }
8 |
9 | .@{fa-css-prefix}-pulse {
10 | -webkit-animation: fa-spin 1s infinite steps(8);
11 | animation: fa-spin 1s infinite steps(8);
12 | }
13 |
14 | @-webkit-keyframes fa-spin {
15 | 0% {
16 | -webkit-transform: rotate(0deg);
17 | transform: rotate(0deg);
18 | }
19 | 100% {
20 | -webkit-transform: rotate(359deg);
21 | transform: rotate(359deg);
22 | }
23 | }
24 |
25 | @keyframes fa-spin {
26 | 0% {
27 | -webkit-transform: rotate(0deg);
28 | transform: rotate(0deg);
29 | }
30 | 100% {
31 | -webkit-transform: rotate(359deg);
32 | transform: rotate(359deg);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/public/less/bordered-pulled.less:
--------------------------------------------------------------------------------
1 | // Bordered & Pulled
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-border {
5 | padding: .2em .25em .15em;
6 | border: solid .08em @fa-border-color;
7 | border-radius: .1em;
8 | }
9 |
10 | .@{fa-css-prefix}-pull-left { float: left; }
11 | .@{fa-css-prefix}-pull-right { float: right; }
12 |
13 | .@{fa-css-prefix} {
14 | &.@{fa-css-prefix}-pull-left { margin-right: .3em; }
15 | &.@{fa-css-prefix}-pull-right { margin-left: .3em; }
16 | }
17 |
18 | /* Deprecated as of 4.4.0 */
19 | .pull-right { float: right; }
20 | .pull-left { float: left; }
21 |
22 | .@{fa-css-prefix} {
23 | &.pull-left { margin-right: .3em; }
24 | &.pull-right { margin-left: .3em; }
25 | }
26 |
--------------------------------------------------------------------------------
/public/less/core.less:
--------------------------------------------------------------------------------
1 | // Base Class Definition
2 | // -------------------------
3 |
4 | .@{fa-css-prefix} {
5 | display: inline-block;
6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
7 | font-size: inherit; // can't have font-size inherit on line above, so need to override
8 | text-rendering: auto; // optimizelegibility throws things off #1094
9 | -webkit-font-smoothing: antialiased;
10 | -moz-osx-font-smoothing: grayscale;
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/public/less/fixed-width.less:
--------------------------------------------------------------------------------
1 | // Fixed Width Icons
2 | // -------------------------
3 | .@{fa-css-prefix}-fw {
4 | width: (18em / 14);
5 | text-align: center;
6 | }
7 |
--------------------------------------------------------------------------------
/public/less/font-awesome.less:
--------------------------------------------------------------------------------
1 | /*!
2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4 | */
5 |
6 | @import "variables.less";
7 | @import "mixins.less";
8 | @import "path.less";
9 | @import "core.less";
10 | @import "larger.less";
11 | @import "fixed-width.less";
12 | @import "list.less";
13 | @import "bordered-pulled.less";
14 | @import "animated.less";
15 | @import "rotated-flipped.less";
16 | @import "stacked.less";
17 | @import "icons.less";
18 | @import "screen-reader.less";
19 |
--------------------------------------------------------------------------------
/public/less/larger.less:
--------------------------------------------------------------------------------
1 | // Icon Sizes
2 | // -------------------------
3 |
4 | /* makes the font 33% larger relative to the icon container */
5 | .@{fa-css-prefix}-lg {
6 | font-size: (4em / 3);
7 | line-height: (3em / 4);
8 | vertical-align: -15%;
9 | }
10 | .@{fa-css-prefix}-2x { font-size: 2em; }
11 | .@{fa-css-prefix}-3x { font-size: 3em; }
12 | .@{fa-css-prefix}-4x { font-size: 4em; }
13 | .@{fa-css-prefix}-5x { font-size: 5em; }
14 |
--------------------------------------------------------------------------------
/public/less/list.less:
--------------------------------------------------------------------------------
1 | // List Icons
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-ul {
5 | padding-left: 0;
6 | margin-left: @fa-li-width;
7 | list-style-type: none;
8 | > li { position: relative; }
9 | }
10 | .@{fa-css-prefix}-li {
11 | position: absolute;
12 | left: -@fa-li-width;
13 | width: @fa-li-width;
14 | top: (2em / 14);
15 | text-align: center;
16 | &.@{fa-css-prefix}-lg {
17 | left: (-@fa-li-width + (4em / 14));
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/public/less/mixins.less:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------
3 |
4 | .fa-icon() {
5 | display: inline-block;
6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
7 | font-size: inherit; // can't have font-size inherit on line above, so need to override
8 | text-rendering: auto; // optimizelegibility throws things off #1094
9 | -webkit-font-smoothing: antialiased;
10 | -moz-osx-font-smoothing: grayscale;
11 |
12 | }
13 |
14 | .fa-icon-rotate(@degrees, @rotation) {
15 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
16 | -webkit-transform: rotate(@degrees);
17 | -ms-transform: rotate(@degrees);
18 | transform: rotate(@degrees);
19 | }
20 |
21 | .fa-icon-flip(@horiz, @vert, @rotation) {
22 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
23 | -webkit-transform: scale(@horiz, @vert);
24 | -ms-transform: scale(@horiz, @vert);
25 | transform: scale(@horiz, @vert);
26 | }
27 |
28 |
29 | // Only display content to screen readers. A la Bootstrap 4.
30 | //
31 | // See: http://a11yproject.com/posts/how-to-hide-content/
32 |
33 | .sr-only() {
34 | position: absolute;
35 | width: 1px;
36 | height: 1px;
37 | padding: 0;
38 | margin: -1px;
39 | overflow: hidden;
40 | clip: rect(0,0,0,0);
41 | border: 0;
42 | }
43 |
44 | // Use in conjunction with .sr-only to only display content when it's focused.
45 | //
46 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
47 | //
48 | // Credit: HTML5 Boilerplate
49 |
50 | .sr-only-focusable() {
51 | &:active,
52 | &:focus {
53 | position: static;
54 | width: auto;
55 | height: auto;
56 | margin: 0;
57 | overflow: visible;
58 | clip: auto;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/public/less/path.less:
--------------------------------------------------------------------------------
1 | /* FONT PATH
2 | * -------------------------- */
3 |
4 | @font-face {
5 | font-family: 'FontAwesome';
6 | src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
7 | src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
8 | url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
9 | url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
10 | url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
11 | url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
12 | // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
13 | font-weight: normal;
14 | font-style: normal;
15 | }
16 |
--------------------------------------------------------------------------------
/public/less/rotated-flipped.less:
--------------------------------------------------------------------------------
1 | // Rotated & Flipped Icons
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
5 | .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
6 | .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
7 |
8 | .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
9 | .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }
10 |
11 | // Hook for IE8-9
12 | // -------------------------
13 |
14 | :root .@{fa-css-prefix}-rotate-90,
15 | :root .@{fa-css-prefix}-rotate-180,
16 | :root .@{fa-css-prefix}-rotate-270,
17 | :root .@{fa-css-prefix}-flip-horizontal,
18 | :root .@{fa-css-prefix}-flip-vertical {
19 | filter: none;
20 | }
21 |
--------------------------------------------------------------------------------
/public/less/screen-reader.less:
--------------------------------------------------------------------------------
1 | // Screen Readers
2 | // -------------------------
3 |
4 | .sr-only { .sr-only(); }
5 | .sr-only-focusable { .sr-only-focusable(); }
6 |
--------------------------------------------------------------------------------
/public/less/stacked.less:
--------------------------------------------------------------------------------
1 | // Stacked Icons
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-stack {
5 | position: relative;
6 | display: inline-block;
7 | width: 2em;
8 | height: 2em;
9 | line-height: 2em;
10 | vertical-align: middle;
11 | }
12 | .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
13 | position: absolute;
14 | left: 0;
15 | width: 100%;
16 | text-align: center;
17 | }
18 | .@{fa-css-prefix}-stack-1x { line-height: inherit; }
19 | .@{fa-css-prefix}-stack-2x { font-size: 2em; }
20 | .@{fa-css-prefix}-inverse { color: @fa-inverse; }
21 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/public/scss/_animated.scss:
--------------------------------------------------------------------------------
1 | // Spinning Icons
2 | // --------------------------
3 |
4 | .#{$fa-css-prefix}-spin {
5 | -webkit-animation: fa-spin 2s infinite linear;
6 | animation: fa-spin 2s infinite linear;
7 | }
8 |
9 | .#{$fa-css-prefix}-pulse {
10 | -webkit-animation: fa-spin 1s infinite steps(8);
11 | animation: fa-spin 1s infinite steps(8);
12 | }
13 |
14 | @-webkit-keyframes fa-spin {
15 | 0% {
16 | -webkit-transform: rotate(0deg);
17 | transform: rotate(0deg);
18 | }
19 | 100% {
20 | -webkit-transform: rotate(359deg);
21 | transform: rotate(359deg);
22 | }
23 | }
24 |
25 | @keyframes fa-spin {
26 | 0% {
27 | -webkit-transform: rotate(0deg);
28 | transform: rotate(0deg);
29 | }
30 | 100% {
31 | -webkit-transform: rotate(359deg);
32 | transform: rotate(359deg);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/public/scss/_bordered-pulled.scss:
--------------------------------------------------------------------------------
1 | // Bordered & Pulled
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-border {
5 | padding: .2em .25em .15em;
6 | border: solid .08em $fa-border-color;
7 | border-radius: .1em;
8 | }
9 |
10 | .#{$fa-css-prefix}-pull-left { float: left; }
11 | .#{$fa-css-prefix}-pull-right { float: right; }
12 |
13 | .#{$fa-css-prefix} {
14 | &.#{$fa-css-prefix}-pull-left { margin-right: .3em; }
15 | &.#{$fa-css-prefix}-pull-right { margin-left: .3em; }
16 | }
17 |
18 | /* Deprecated as of 4.4.0 */
19 | .pull-right { float: right; }
20 | .pull-left { float: left; }
21 |
22 | .#{$fa-css-prefix} {
23 | &.pull-left { margin-right: .3em; }
24 | &.pull-right { margin-left: .3em; }
25 | }
26 |
--------------------------------------------------------------------------------
/public/scss/_core.scss:
--------------------------------------------------------------------------------
1 | // Base Class Definition
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix} {
5 | display: inline-block;
6 | font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
7 | font-size: inherit; // can't have font-size inherit on line above, so need to override
8 | text-rendering: auto; // optimizelegibility throws things off #1094
9 | -webkit-font-smoothing: antialiased;
10 | -moz-osx-font-smoothing: grayscale;
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/public/scss/_fixed-width.scss:
--------------------------------------------------------------------------------
1 | // Fixed Width Icons
2 | // -------------------------
3 | .#{$fa-css-prefix}-fw {
4 | width: (18em / 14);
5 | text-align: center;
6 | }
7 |
--------------------------------------------------------------------------------
/public/scss/_larger.scss:
--------------------------------------------------------------------------------
1 | // Icon Sizes
2 | // -------------------------
3 |
4 | /* makes the font 33% larger relative to the icon container */
5 | .#{$fa-css-prefix}-lg {
6 | font-size: (4em / 3);
7 | line-height: (3em / 4);
8 | vertical-align: -15%;
9 | }
10 | .#{$fa-css-prefix}-2x { font-size: 2em; }
11 | .#{$fa-css-prefix}-3x { font-size: 3em; }
12 | .#{$fa-css-prefix}-4x { font-size: 4em; }
13 | .#{$fa-css-prefix}-5x { font-size: 5em; }
14 |
--------------------------------------------------------------------------------
/public/scss/_list.scss:
--------------------------------------------------------------------------------
1 | // List Icons
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-ul {
5 | padding-left: 0;
6 | margin-left: $fa-li-width;
7 | list-style-type: none;
8 | > li { position: relative; }
9 | }
10 | .#{$fa-css-prefix}-li {
11 | position: absolute;
12 | left: -$fa-li-width;
13 | width: $fa-li-width;
14 | top: (2em / 14);
15 | text-align: center;
16 | &.#{$fa-css-prefix}-lg {
17 | left: -$fa-li-width + (4em / 14);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/public/scss/_mixins.scss:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------
3 |
4 | @mixin fa-icon() {
5 | display: inline-block;
6 | font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
7 | font-size: inherit; // can't have font-size inherit on line above, so need to override
8 | text-rendering: auto; // optimizelegibility throws things off #1094
9 | -webkit-font-smoothing: antialiased;
10 | -moz-osx-font-smoothing: grayscale;
11 |
12 | }
13 |
14 | @mixin fa-icon-rotate($degrees, $rotation) {
15 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
16 | -webkit-transform: rotate($degrees);
17 | -ms-transform: rotate($degrees);
18 | transform: rotate($degrees);
19 | }
20 |
21 | @mixin fa-icon-flip($horiz, $vert, $rotation) {
22 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
23 | -webkit-transform: scale($horiz, $vert);
24 | -ms-transform: scale($horiz, $vert);
25 | transform: scale($horiz, $vert);
26 | }
27 |
28 |
29 | // Only display content to screen readers. A la Bootstrap 4.
30 | //
31 | // See: http://a11yproject.com/posts/how-to-hide-content/
32 |
33 | @mixin sr-only {
34 | position: absolute;
35 | width: 1px;
36 | height: 1px;
37 | padding: 0;
38 | margin: -1px;
39 | overflow: hidden;
40 | clip: rect(0,0,0,0);
41 | border: 0;
42 | }
43 |
44 | // Use in conjunction with .sr-only to only display content when it's focused.
45 | //
46 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
47 | //
48 | // Credit: HTML5 Boilerplate
49 |
50 | @mixin sr-only-focusable {
51 | &:active,
52 | &:focus {
53 | position: static;
54 | width: auto;
55 | height: auto;
56 | margin: 0;
57 | overflow: visible;
58 | clip: auto;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/public/scss/_path.scss:
--------------------------------------------------------------------------------
1 | /* FONT PATH
2 | * -------------------------- */
3 |
4 | @font-face {
5 | font-family: 'FontAwesome';
6 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}');
7 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),
8 | url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'),
9 | url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'),
10 | url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'),
11 | url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg');
12 | // src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
13 | font-weight: normal;
14 | font-style: normal;
15 | }
16 |
--------------------------------------------------------------------------------
/public/scss/_rotated-flipped.scss:
--------------------------------------------------------------------------------
1 | // Rotated & Flipped Icons
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); }
5 | .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); }
6 | .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); }
7 |
8 | .#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); }
9 | .#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); }
10 |
11 | // Hook for IE8-9
12 | // -------------------------
13 |
14 | :root .#{$fa-css-prefix}-rotate-90,
15 | :root .#{$fa-css-prefix}-rotate-180,
16 | :root .#{$fa-css-prefix}-rotate-270,
17 | :root .#{$fa-css-prefix}-flip-horizontal,
18 | :root .#{$fa-css-prefix}-flip-vertical {
19 | filter: none;
20 | }
21 |
--------------------------------------------------------------------------------
/public/scss/_screen-reader.scss:
--------------------------------------------------------------------------------
1 | // Screen Readers
2 | // -------------------------
3 |
4 | .sr-only { @include sr-only(); }
5 | .sr-only-focusable { @include sr-only-focusable(); }
6 |
--------------------------------------------------------------------------------
/public/scss/_stacked.scss:
--------------------------------------------------------------------------------
1 | // Stacked Icons
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-stack {
5 | position: relative;
6 | display: inline-block;
7 | width: 2em;
8 | height: 2em;
9 | line-height: 2em;
10 | vertical-align: middle;
11 | }
12 | .#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x {
13 | position: absolute;
14 | left: 0;
15 | width: 100%;
16 | text-align: center;
17 | }
18 | .#{$fa-css-prefix}-stack-1x { line-height: inherit; }
19 | .#{$fa-css-prefix}-stack-2x { font-size: 2em; }
20 | .#{$fa-css-prefix}-inverse { color: $fa-inverse; }
21 |
--------------------------------------------------------------------------------
/public/scss/font-awesome.scss:
--------------------------------------------------------------------------------
1 | /*!
2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4 | */
5 |
6 | @import "variables";
7 | @import "mixins";
8 | @import "path";
9 | @import "core";
10 | @import "larger";
11 | @import "fixed-width";
12 | @import "list";
13 | @import "bordered-pulled";
14 | @import "animated";
15 | @import "rotated-flipped";
16 | @import "stacked";
17 | @import "icons";
18 | @import "screen-reader";
19 |
--------------------------------------------------------------------------------
/public/uploads/eror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/uploads/eror.png
--------------------------------------------------------------------------------
/public/uploads/placeholder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/javedbaloch4/laravel-booking-app/a466c7837ecf4124c5fe282e9f5fbaf64baae6f5/public/uploads/placeholder.png
--------------------------------------------------------------------------------
/resources/assets/js/app.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * First we will load all of this project's JavaScript dependencies which
4 | * includes Vue and other libraries. It is a great starting point when
5 | * building robust, powerful web applications using Vue and Laravel.
6 | */
7 |
8 | require('./bootstrap');
9 |
10 | window.Vue = require('vue');
11 |
12 | /**
13 | * Next, we will create a fresh Vue application instance and attach it to
14 | * the page. Then, you may begin adding components to this application
15 | * or customize the JavaScript scaffolding to fit your unique needs.
16 | */
17 |
18 | Vue.component('example-component', require('./components/ExampleComponent.vue'));
19 |
20 | const app = new Vue({
21 | el: '#app'
22 | });
23 |
--------------------------------------------------------------------------------
/resources/assets/js/bootstrap.js:
--------------------------------------------------------------------------------
1 |
2 | window._ = require('lodash');
3 |
4 | /**
5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support
6 | * for JavaScript based Bootstrap features such as modals and tabs. This
7 | * code may be modified to fit the specific needs of your application.
8 | */
9 |
10 | try {
11 | window.$ = window.jQuery = require('jquery');
12 |
13 | require('bootstrap-sass');
14 | } catch (e) {}
15 |
16 | /**
17 | * We'll load the axios HTTP library which allows us to easily issue requests
18 | * to our Laravel back-end. This library automatically handles sending the
19 | * CSRF token as a header based on the value of the "XSRF" token cookie.
20 | */
21 |
22 | window.axios = require('axios');
23 |
24 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
25 |
26 | /**
27 | * Next we will register the CSRF Token as a common header with Axios so that
28 | * all outgoing HTTP requests automatically have it attached. This is just
29 | * a simple convenience so we don't have to attach every token manually.
30 | */
31 |
32 | let token = document.head.querySelector('meta[name="csrf-token"]');
33 |
34 | if (token) {
35 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
36 | } else {
37 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
38 | }
39 |
40 | /**
41 | * Echo exposes an expressive API for subscribing to channels and listening
42 | * for events that are broadcast by Laravel. Echo and event broadcasting
43 | * allows your team to easily build robust real-time web applications.
44 | */
45 |
46 | // import Echo from 'laravel-echo'
47 |
48 | // window.Pusher = require('pusher-js');
49 |
50 | // window.Echo = new Echo({
51 | // broadcaster: 'pusher',
52 | // key: 'your-pusher-key',
53 | // cluster: 'mt1',
54 | // encrypted: true
55 | // });
56 |
--------------------------------------------------------------------------------
/resources/assets/js/components/ExampleComponent.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Example Component
7 |
8 |
9 | I'm an example component!
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
--------------------------------------------------------------------------------
/resources/assets/sass/_variables.scss:
--------------------------------------------------------------------------------
1 |
2 | // Body
3 | $body-bg: #f5f8fa;
4 |
5 | // Borders
6 | $laravel-border-color: darken($body-bg, 10%);
7 | $list-group-border: $laravel-border-color;
8 | $navbar-default-border: $laravel-border-color;
9 | $panel-default-border: $laravel-border-color;
10 | $panel-inner-border: $laravel-border-color;
11 |
12 | // Brands
13 | $brand-primary: #3097D1;
14 | $brand-info: #8eb4cb;
15 | $brand-success: #2ab27b;
16 | $brand-warning: #cbb956;
17 | $brand-danger: #bf5329;
18 |
19 | // Typography
20 | $icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
21 | $font-family-sans-serif: "Raleway", sans-serif;
22 | $font-size-base: 14px;
23 | $line-height-base: 1.6;
24 | $text-color: #636b6f;
25 |
26 | // Navbar
27 | $navbar-default-bg: #fff;
28 |
29 | // Buttons
30 | $btn-default-color: $text-color;
31 |
32 | // Inputs
33 | $input-border: lighten($text-color, 40%);
34 | $input-border-focus: lighten($brand-primary, 25%);
35 | $input-color-placeholder: lighten($text-color, 30%);
36 |
37 | // Panels
38 | $panel-default-heading-bg: #fff;
39 |
--------------------------------------------------------------------------------
/resources/assets/sass/app.scss:
--------------------------------------------------------------------------------
1 |
2 | // Fonts
3 | @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
4 |
5 | // Variables
6 | @import "variables";
7 |
8 | // Bootstrap
9 | @import "~bootstrap-sass/assets/stylesheets/bootstrap";
10 |
--------------------------------------------------------------------------------
/resources/lang/en/auth.php:
--------------------------------------------------------------------------------
1 | 'These credentials do not match our records.',
17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
18 |
19 | ];
20 |
--------------------------------------------------------------------------------
/resources/lang/en/pagination.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 | 'next' => 'Next »',
18 |
19 | ];
20 |
--------------------------------------------------------------------------------
/resources/lang/en/passwords.php:
--------------------------------------------------------------------------------
1 | 'Passwords must be at least six characters and match the confirmation.',
17 | 'reset' => 'Your password has been reset!',
18 | 'sent' => 'We have e-mailed your password reset link!',
19 | 'token' => 'This password reset token is invalid.',
20 | 'user' => "We can't find a user with that e-mail address.",
21 |
22 | ];
23 |
--------------------------------------------------------------------------------
/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'active_url' => 'The :attribute is not a valid URL.',
18 | 'after' => 'The :attribute must be a date after :date.',
19 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
20 | 'alpha' => 'The :attribute may only contain letters.',
21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.',
23 | 'array' => 'The :attribute must be an array.',
24 | 'before' => 'The :attribute must be a date before :date.',
25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
26 | 'between' => [
27 | 'numeric' => 'The :attribute must be between :min and :max.',
28 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
29 | 'string' => 'The :attribute must be between :min and :max characters.',
30 | 'array' => 'The :attribute must have between :min and :max items.',
31 | ],
32 | 'boolean' => 'The :attribute field must be true or false.',
33 | 'confirmed' => 'The :attribute confirmation does not match.',
34 | 'date' => 'The :attribute is not a valid date.',
35 | 'date_format' => 'The :attribute does not match the format :format.',
36 | 'different' => 'The :attribute and :other must be different.',
37 | 'digits' => 'The :attribute must be :digits digits.',
38 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
39 | 'dimensions' => 'The :attribute has invalid image dimensions.',
40 | 'distinct' => 'The :attribute field has a duplicate value.',
41 | 'email' => 'The :attribute must be a valid email address.',
42 | 'exists' => 'The selected :attribute is invalid.',
43 | 'file' => 'The :attribute must be a file.',
44 | 'filled' => 'The :attribute field must have a value.',
45 | 'image' => 'The :attribute must be an image.',
46 | 'in' => 'The selected :attribute is invalid.',
47 | 'in_array' => 'The :attribute field does not exist in :other.',
48 | 'integer' => 'The :attribute must be an integer.',
49 | 'ip' => 'The :attribute must be a valid IP address.',
50 | 'ipv4' => 'The :attribute must be a valid IPv4 address.',
51 | 'ipv6' => 'The :attribute must be a valid IPv6 address.',
52 | 'json' => 'The :attribute must be a valid JSON string.',
53 | 'max' => [
54 | 'numeric' => 'The :attribute may not be greater than :max.',
55 | 'file' => 'The :attribute may not be greater than :max kilobytes.',
56 | 'string' => 'The :attribute may not be greater than :max characters.',
57 | 'array' => 'The :attribute may not have more than :max items.',
58 | ],
59 | 'mimes' => 'The :attribute must be a file of type: :values.',
60 | 'mimetypes' => 'The :attribute must be a file of type: :values.',
61 | 'min' => [
62 | 'numeric' => 'The :attribute must be at least :min.',
63 | 'file' => 'The :attribute must be at least :min kilobytes.',
64 | 'string' => 'The :attribute must be at least :min characters.',
65 | 'array' => 'The :attribute must have at least :min items.',
66 | ],
67 | 'not_in' => 'The selected :attribute is invalid.',
68 | 'numeric' => 'The :attribute must be a number.',
69 | 'present' => 'The :attribute field must be present.',
70 | 'regex' => 'The :attribute format is invalid.',
71 | 'required' => 'The :attribute field is required.',
72 | 'required_if' => 'The :attribute field is required when :other is :value.',
73 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
74 | 'required_with' => 'The :attribute field is required when :values is present.',
75 | 'required_with_all' => 'The :attribute field is required when :values is present.',
76 | 'required_without' => 'The :attribute field is required when :values is not present.',
77 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
78 | 'same' => 'The :attribute and :other must match.',
79 | 'size' => [
80 | 'numeric' => 'The :attribute must be :size.',
81 | 'file' => 'The :attribute must be :size kilobytes.',
82 | 'string' => 'The :attribute must be :size characters.',
83 | 'array' => 'The :attribute must contain :size items.',
84 | ],
85 | 'string' => 'The :attribute must be a string.',
86 | 'timezone' => 'The :attribute must be a valid zone.',
87 | 'unique' => 'The :attribute has already been taken.',
88 | 'uploaded' => 'The :attribute failed to upload.',
89 | 'url' => 'The :attribute format is invalid.',
90 |
91 | /*
92 | |--------------------------------------------------------------------------
93 | | Custom Validation Language Lines
94 | |--------------------------------------------------------------------------
95 | |
96 | | Here you may specify custom validation messages for attributes using the
97 | | convention "attribute.rule" to name the lines. This makes it quick to
98 | | specify a specific custom language line for a given attribute rule.
99 | |
100 | */
101 |
102 | 'custom' => [
103 | 'attribute-name' => [
104 | 'rule-name' => 'custom-message',
105 | ],
106 | ],
107 |
108 | /*
109 | |--------------------------------------------------------------------------
110 | | Custom Validation Attributes
111 | |--------------------------------------------------------------------------
112 | |
113 | | The following language lines are used to swap attribute place-holders
114 | | with something more reader friendly such as E-Mail Address instead
115 | | of "email". This simply helps us make messages a little cleaner.
116 | |
117 | */
118 |
119 | 'attributes' => [],
120 |
121 | ];
122 |
--------------------------------------------------------------------------------
/resources/views/bookings/_fields.blade.php:
--------------------------------------------------------------------------------
1 |
2 | {!! Form::label('name','Client:') !!}
3 |
4 | @foreach ($clients as $client)
5 | Client ID:{{ $client->id }}
6 | @endforeach
7 |
8 |
9 |
10 | {!! Form::label('room','Room:') !!}
11 |
13 | @foreach ($rooms as $room)
14 | Room ID:{{ $room->id }}
15 | @endforeach
16 |
17 |
18 |
19 | {!! Form::label('start_date','Start Date:') !!}
20 | {!! Form::date('start_date', $booking->start_date ,['class'=>'form-control datepicker']) !!}
21 | {{ $errors->has('start_date') ? $errors->first('start_date') : '' }}
22 |
23 |
24 |
25 | {!! Form::label('end_date','End Date') !!}
26 | {!! Form::date('end_date', $booking->end_date ,['class'=>'form-control datepicker']) !!}
27 | {{ $errors->has('end_date') ? $errors->first('end_date') : '' }}
28 |
--------------------------------------------------------------------------------
/resources/views/bookings/canceled.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Canceled Bookings
5 | @endsection
6 |
7 | @section('search')
8 |
14 | @endsection
15 |
16 | @section('content')
17 | View Bookings
18 |
19 |
20 | @include('errors.errors')
21 |
22 |
23 |
24 | #Booking ID
25 | Client Name
26 | Room
27 | Floor
28 | Beds
29 | Type
30 | Booked At
31 | Booking End
32 | Status
33 | Action
34 |
35 |
36 |
37 | @foreach ($canceledBookings as $booking)
38 |
39 | {{ $booking->id }}
40 | {{ $booking->client->name }}
41 | {{ $booking->room->name }}
42 | {{ $booking->room->floor }}
43 | {{ $booking->room->beds }}
44 | {{ $booking->room->type }}
45 | {{ $booking->start_date }}
46 | {{ $booking->end_date }}
47 |
48 | @if ($booking->status)
49 | Booked
50 | @else
51 | Canceled
52 | @endif
53 |
54 |
55 |
56 | {!! Form::open(['route'=>['booking.destroy', $booking->id], 'method'=>'DELETE',]) !!}
57 | {!! link_to_route('booking.edit','',[$booking->id],['class'=>'fa fa-pencil btn btn-primary btn-xs','title' => 'Edit Booking']) !!}
58 | {!! link_to_route('booking.show', '',[$booking->id],['class'=>'fa fa-bars btn btn-success btn-xs','title' => 'Show Booking Details']) !!}
59 | {{ Form::button('', ['type'=>'submit','class'=>'btn btn-danger btn-xs fa fa-trash','onclick'=>'return confirm("Are you sure you want to delete this?")','title' => 'Delete Booking']) }}
60 | {!! Form::close() !!}
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | @endforeach
69 |
70 | @endsection
--------------------------------------------------------------------------------
/resources/views/bookings/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Booking
5 | @endsection
6 |
7 | @section('content')
8 |
9 |
10 |
11 |
12 |
Book A Room
13 |
14 |
15 | @include('errors.errors')
16 |
17 | {{ Form::open(['url' => ['booking']]) }}
18 |
19 | @include('bookings._fields')
20 |
21 | {{ Form::submit('Book Room', ['class'=>'btn btn-primary']) }}
22 |
23 | {!! link_to('/rooms','back',['class'=>'btn btn-success'], $secure = null) !!}
24 |
25 | {{ Form::close() }}
26 |
27 |
28 |
29 |
30 | @endsection
31 |
32 | @section('script')
33 |
36 | @endsection
--------------------------------------------------------------------------------
/resources/views/bookings/detail.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | {{$booking->name}} Detail
5 | @endsection
6 |
7 | @section('content')
8 |
9 | Room Detail
10 |
11 |
12 |
13 |
14 | #Booking ID
15 | {{ $booking->client->id }}
16 |
17 |
18 |
19 | Client Name
20 | {{ $booking->client->name }}
21 |
22 |
23 |
24 | Room
25 | {{ $booking->room->id }}
26 |
27 |
28 |
29 | Floor
30 | {{ $booking->room->floor }}
31 |
32 |
33 |
34 | Type
35 | {{ $booking->room->type }}
36 |
37 |
38 |
39 | Last Update By:
40 | {{ $booking->user->name }}
41 |
42 |
43 |
44 | Booking At
45 | {{ $booking->start_date }}
46 |
47 |
48 |
49 | Booking End
50 | {{ $booking->end_date }}
51 |
52 |
53 |
54 |
55 | {!! Form::open(['route'=> ['booking.destroy', $booking->id], 'method'=>'DELETE']) !!}
56 | {!! link_to('/booking', 'Back',['class'=>'btn btn-success btn-sm']) !!}
57 | {!! link_to_route('booking.edit', 'Edit', $booking->id, ['class'=>'btn btn-info btn-sm']) !!}
58 | {!! Form::button('Delete',['type','submit','class'=>'btn btn-danger btn-sm', 'onclick'=>'return confirm("Are you sure you want to delete this?")']) !!}
59 | {!! Form::close() !!}
60 | @endsection
--------------------------------------------------------------------------------
/resources/views/bookings/edit.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Edit Booking
5 | @endsection
6 |
7 | @section('content')
8 | Edit Booking
9 |
10 | {!! Form::model($booking, ['route' => ['booking.update',$booking->id], 'method'=>'PUT']) !!}
11 | @include('bookings._fields')
12 | {!! Form::submit('Update', ['class'=>'btn btn-primary']) !!}
13 | {!! link_to('/booking', 'Back',['class'=>'btn btn-success']) !!}
14 | {!! Form::close() !!}
15 | @endsection
--------------------------------------------------------------------------------
/resources/views/bookings/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | View Rooms
5 | @endsection
6 |
7 | @section('search')
8 |
14 | @endsection
15 |
16 | @section('content')
17 | View Bookings
18 |
19 |
20 | @include('errors.errors')
21 |
22 |
23 |
24 | #Booking ID
25 | Client Name
26 | Room
27 | Floor
28 | Beds
29 | Type
30 | Booked At
31 | Booking End
32 | Booked By
33 | Status
34 | Action
35 |
36 |
37 |
38 | @foreach ($bookings as $booking)
39 |
40 | {{ $booking->id }}
41 | {{ $booking->client->name }}
42 | {{ $booking->room->name }}
43 | {{ $booking->room->floor }}
44 | {{ $booking->room->beds }}
45 | {{ $booking->room->type }}
46 | {{ $booking->start_date }}
47 | {{ $booking->end_date }}
48 | {{ $booking->user->name }}
49 |
50 | @if ($booking->status)
51 | Booked
52 | @else
53 | Canceled
54 | @endif
55 |
56 |
57 |
58 | {!! Form::open(['route'=>['booking.destroy', $booking->id], 'method'=>'DELETE',]) !!}
59 | {!! link_to_route('booking.edit','',[$booking->id],['class'=>'fa fa-pencil btn btn-primary btn-xs','title' => 'Edit Booking']) !!}
60 | {!! link_to_route('booking.show', '',[$booking->id],['class'=>'fa fa-bars btn btn-success btn-xs','title' => 'Show Booking Details']) !!}
61 | {{ Form::button('', ['type'=>'submit','class'=>'btn btn-danger btn-xs fa fa-trash','onclick'=>'return confirm("Are you sure you want to delete this?")','title' => 'Delete Booking']) }}
62 | {!! Form::close() !!}
63 |
64 | {!! Form::open(['route'=>['booking.cancel', $booking->id, $booking->room_id]]) !!}
65 | {{ Form::button('', ['type'=>'submit','class'=>'btn btn-warning btn-xs fa fa-times-circle col-md-12','onclick'=>'return confirm("Are you sure you want to Cancel Booking?")', 'title' => 'Cancel Booking', 'style' => 'margin-top: 5px']) }}
66 | {!! Form::close() !!}
67 |
68 |
69 |
70 |
71 |
72 |
73 | @endforeach
74 |
75 | @endsection
--------------------------------------------------------------------------------
/resources/views/clients/_fields.blade.php:
--------------------------------------------------------------------------------
1 |
2 | {!! Form::label('name') !!}
3 | {!! Form::text('name', $client->name, ['class' => 'form-control', 'placeholder' => 'Client Name']) !!}
4 | {{ $errors->has('name') ? $errors->first('name') : '' }}
5 |
6 |
7 |
8 | {!! Form::label('email') !!}
9 | {!! Form::email('email', $client->email, ['class' => 'form-control', 'placeholder' => 'Client Email']) !!}
10 | {{ $errors->has('email') ? $errors->first('email') : ''}}
11 |
12 |
13 |
14 | {!! Form::label('phone') !!}
15 | {!! Form::text('phone', $client->phone,['class' => 'form-control', 'placeholder' => 'Client Phone']) !!}
16 | {{ $errors->has('phone') ? $errors->first('phone') : '' }}
17 |
18 |
19 |
25 |
--------------------------------------------------------------------------------
/resources/views/clients/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Add Client
5 | @endsection
6 |
7 | @section('content')
8 |
9 |
10 |
Add Client
11 |
12 |
13 | @include('errors.errors')
14 |
15 | {{ Form::open(['url' => 'clients','files'=>true]) }}
16 | @include('clients._fields')
17 |
21 |
22 | {!! Form::close() !!}
23 |
24 |
25 |
26 | @endsection
27 |
--------------------------------------------------------------------------------
/resources/views/clients/detail.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | {{ $client->name }} Detail
5 | @endsection
6 |
7 | @section('content')
8 |
9 |
10 |
11 |
Client Detail
12 |
13 |
14 |
Personal Details
15 |
16 |
17 | #Client ID
18 | {{ $client->id }}
19 | Photo
20 |
21 |
22 |
23 | Name
24 | {{ $client->name }}
25 |
28 |
29 |
30 |
31 | Email
32 | {{ $client->email }}
33 |
34 |
35 |
36 | Phone
37 | {{ $client->phone }}
38 |
39 |
40 |
41 | Registered At
42 | {{ $client->created_at->diffForHumans() }}
43 |
44 |
45 |
46 | Updated At
47 | {{ $client->updated_at->diffForHumans() }}
48 |
49 |
50 | {!! Form::open(['route'=> ['clients.destroy', $client->id], 'method' => 'DELETE']) !!}
51 |
Back
52 | {!! link_to_route('clients.edit', 'Edit', [$client->id], ['class'=>'btn btn-info btn-sm']) !!}
53 | {{ Form::button('Delete', ['type' => 'submit', 'class' => 'btn btn-danger btn-sm','onclick'=>'return confirm("Are you sure you want to delete this?")'] ) }}
54 |
55 |
Booking Details
56 |
57 | @if ($bookings)
58 |
59 |
60 |
61 | #Booking ID
62 | Room
63 | Booked At
64 | Left At
65 | Booked By
66 |
67 |
68 |
69 | @foreach ($bookings as $booking)
70 |
71 | {{ $booking->id }}
72 | {{ $booking->room->name }}
73 | {{ $booking->start_date }}
74 | {{ $booking->end_date }}
75 | {{ $booking->user->name }}
76 |
77 | @endforeach
78 |
79 |
80 |
81 |
82 | {!! Form::close() !!}
83 |
84 | @else
85 |
{{ $client->name }} has not booked rooms yet
86 | @endif
87 |
88 |
89 | @endsection
90 |
--------------------------------------------------------------------------------
/resources/views/clients/edit.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Edit
5 | @endsection
6 |
7 | @section('content')
8 | Edit Client
9 |
10 |
11 |
12 | @include('errors.errors')
13 |
14 | {!! Form::model($client, ['route' => ['clients.update', $client->id],'method'=>'PUT', 'files'=>true]) !!}
15 |
16 | @include('clients._fields')
17 |
21 |
22 | {!! Form::close() !!}
23 |
24 |
25 |
26 |
27 | @endsection
--------------------------------------------------------------------------------
/resources/views/clients/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Clients
5 | @endsection
6 |
7 | @section('search')
8 |
14 | @endsection
15 |
16 | @section('content')
17 | Clients
18 |
19 | Create
20 |
21 |
22 | @include('errors.errors')
23 |
24 |
25 |
26 | #ID
27 | Name
28 | Email
29 | Phone
30 | Image
31 | Actions
32 |
33 |
34 |
35 | @foreach($clients as $client)
36 |
37 | {{ $client->id }}
38 | {{ $client->name }}
39 | {{ $client->email }}
40 | {{ $client->phone }}
41 |
42 |
43 | {!! Form::open(['route'=> ['clients.destroy', $client->id], 'method' => 'DELETE']) !!}
44 | {!! link_to_route('clients.edit', '', [$client->id], ['class'=>'btn btn-primary btn-sm fa fa-pencil']) !!}
45 | {!! link_to_route('clients.show','',[$client->id], ['class'=>'btn btn-success btn-sm fa fa-bars']) !!}
46 | {{ Form::button(' ', ['type' => 'submit', 'class' => 'btn btn-danger btn-sm', 'onclick'=>'return confirm("Are you sure you want to Delete?")'] ) }}
47 | {!! Form::close() !!}
48 |
49 |
50 | @endforeach
51 |
52 |
53 |
54 | @endsection
55 |
56 | @section('script')
57 | @endsection
--------------------------------------------------------------------------------
/resources/views/dashboard.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Dashboard
5 | @endsection
6 |
7 | @section('content')
8 |
9 | Dashboard
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
{{ $client->count() }}
22 |
Total Clients
23 |
24 |
25 |
26 |
27 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
{{ $room->count() }}
45 |
Total Rooms
46 |
47 |
48 |
49 |
50 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
{{ $booking->count() }}
68 |
Total Bookings
69 |
70 |
71 |
72 |
73 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
{{ $room->where('status', 1)->count() }}
91 |
Available Rooms
92 |
93 |
94 |
95 |
96 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
{{ $room->where('status', 0)->count() }}
114 |
Booked Rooms
115 |
116 |
117 |
118 |
119 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
{{ $booking->where('start_date', \Carbon\Carbon::today()->format('Y-m-d'))->count() }}
137 |
Today Bookings
138 |
139 |
140 |
141 |
142 |
147 |
148 |
149 |
150 |
151 |
152 | @endsection
153 |
--------------------------------------------------------------------------------
/resources/views/errors/errors.blade.php:
--------------------------------------------------------------------------------
1 | {{--@if($errors->any())--}}
2 | {{----}}
3 | {{--
--}}
4 | {{--@foreach ($errors->all() as $error)--}}
5 | {{--{{ $error }} --}}
6 | {{--@endforeach--}}
7 | {{-- --}}
8 | {{--
--}}
9 | {{--@endif--}}
10 |
11 | @if (session()->has('msg'))
12 |
13 | {{ session()->get('msg') }}
14 |
15 | @endif
--------------------------------------------------------------------------------
/resources/views/layouts/master.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | {{ Html::style("css/bootstrap.min.css") }}
11 | {{ Html::style('css/font-awesome.min.css') }}
12 | {{ Html::style('plugins/bootstrap-select/dist/css/bootstrap-select.css') }}
13 | {{ Html::style('plugins/Zebra_Datepicker/dist/css/bootstrap/zebra_datepicker.css') }}
14 | {{ Html::style('css/style.css') }}
15 |
16 | @yield('style')
17 | @yield('title')
18 |
19 |
20 | @include('layouts.navbar')
21 |
22 |
23 | @yield('content')
24 |
25 |
26 | {{ Html::script('js/jquery.js') }}
27 | {{ Html::script('js/bootstrap.js') }}
28 | {{ Html::script('plugins/bootstrap-select/dist/js/bootstrap-select.js') }}
29 | {{ Html::script('plugins/Zebra_Datepicker/dist/zebra_datepicker.min.js') }}
30 | {{ Html::script('js/script.js') }}
31 |
32 | @yield('script')
33 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/resources/views/layouts/navbar.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
14 | @if ( auth()->check() )
15 |
16 |
17 |
42 |
43 | @yield('search')
44 |
45 |
55 |
56 | @endif
57 |
58 |
--------------------------------------------------------------------------------
/resources/views/rooms/_fields.blade.php:
--------------------------------------------------------------------------------
1 |
2 | {!! Form::label('name','Room Name:') !!}
3 | {!! Form::text('name',$room->name,['class'=>'form-control']) !!}
4 | {{ $errors->has('name') ? $errors->first('name') : '' }}
5 |
6 |
7 |
8 | {!! Form::label('floor','Floor:') !!}
9 | {!! Form::select('floor', ['Ground Floor' => 'Ground Floor', 'First Floor' => 'First Floor', 'Second Floor'=>'Second Floor','Third Floor'=>'Third Floor'],null,['class'=>'form-control selectpicker', 'data-live-search'=>'true', 'title'=>'Select Floor']) !!}
10 | {{ $errors->has('floor') ? $errors->first('name') : '' }}
11 |
12 |
13 |
14 | {!! Form::label('type','Type:') !!}
15 | {!! Form::select('type', ['Standard' => 'Standard', 'Deluxe' => 'Deluxe', 'Family Room'=>'Family Room'],null,['class'=>'form-control selectpicker', 'data-live-search'=>'true', 'title'=>'Select Room Type']) !!}
16 | {{ $errors->has('type') ? $errors->first('name') : '' }}
17 |
18 |
19 |
20 | {!! Form::label('beds','Beds:') !!}
21 | {!! Form::select('beds', ['One Bed' => 'One Bed', 'Two Bed' => 'Two Bed', 'Triple Bed'=>'Triple Bed'],null,['class'=>'form-control selectpicker', 'data-live-search'=>'true', 'title'=>'Select Room Type']) !!}
22 | {{ $errors->has('beds') ? $errors->first('name') : '' }}
23 |
24 |
--------------------------------------------------------------------------------
/resources/views/rooms/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Rooms
5 | @endsection
6 |
7 | @section('content')
8 |
9 |
10 |
11 |
12 |
Add Room
13 |
14 |
15 | @include('errors.errors')
16 |
17 | {{ Form::open(['url' => 'rooms']) }}
18 |
19 | @include('rooms._fields')
20 |
21 | {{ Form::submit('Add Room', ['class'=>'btn btn-primary']) }}
22 |
23 | {!! link_to('/rooms','back',['class'=>'btn btn-success'], $secure = null) !!}
24 |
25 | {{ Form::close() }}
26 |
27 |
28 |
29 |
30 | @endsection
--------------------------------------------------------------------------------
/resources/views/rooms/detail.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | {{$room->name}} Detail
5 | @endsection
6 |
7 | @section('content')
8 |
9 | Room Detail
10 |
11 |
12 |
13 |
14 |
15 | #ID
16 | {{ $room->id }}
17 |
18 |
19 |
20 | Name
21 | {{ $room->name }}
22 |
23 |
24 |
25 | Type
26 | {{ $room->type }}
27 |
28 |
29 |
30 | Floor
31 | {{ $room->floor }}
32 |
33 |
34 |
35 | Type
36 | {{ $room->type }}
37 |
38 |
39 |
40 | Registered At
41 | {{ $room->created_at->diffForHumans() }}
42 |
43 |
44 |
45 | Last update
46 | {{ $room->updated_at->diffForHumans() }}
47 |
48 |
49 |
50 |
51 | {!! Form::open(['route'=> ['rooms.destroy', $room->id], 'method'=>'DELETE']) !!}
52 | {!! link_to('/rooms', 'Back',['class'=>'btn btn-success btn-sm']) !!}
53 | {!! link_to_route('rooms.edit', 'Edit', $room->id, ['class'=>'btn btn-info btn-sm']) !!}
54 | {!! Form::button('Delete',['type','submit','class'=>'btn btn-danger btn-sm', 'onclick'=>'return confirm("Are you sure you want to delete this?")']) !!}
55 | {!! Form::close() !!}
56 | @endsection
--------------------------------------------------------------------------------
/resources/views/rooms/edit.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Edit Room
5 | @endsection
6 |
7 | @section('content')
8 | Edit Rooms
9 |
10 | {!! Form::model($room, ['route' => ['rooms.update',$room->id], 'method'=>'PUT']) !!}
11 | @include('rooms._fields')
12 | {!! Form::submit('Update', ['class'=>'btn btn-primary']) !!}
13 | {!! link_to('/rooms', 'Back',['class'=>'btn btn-success']) !!}
14 | {!! Form::close() !!}
15 | @endsection
--------------------------------------------------------------------------------
/resources/views/rooms/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | View Rooms
5 | @endsection
6 |
7 | @section('search')
8 |
14 | @endsection
15 |
16 | @section('content')
17 | View Rooms
18 |
19 | @include('errors.errors')
20 |
21 |
22 |
23 | #ID
24 | name
25 | Type
26 | Floor
27 | Beds
28 | Status
29 | Action
30 |
31 |
32 |
33 | @foreach ($rooms as $room)
34 |
35 | {{ $room->id }}
36 | {{ $room->name }}
37 | {{ $room->type }}
38 | {{ $room->floor }}
39 | {{ $room->beds }}
40 |
41 | @if ($room->status)
42 | Available
43 | @else
44 | Not Available
45 | @endif
46 |
47 |
48 | {!! Form::open(['route'=>['rooms.destroy', $room->id], 'method'=>'DELETE']) !!}
49 | {!! link_to_route('rooms.edit', '',[$room->id],['class'=>'fa fa-pencil btn btn-primary btn-sm']) !!}
50 | {!! link_to_route('rooms.show', '',[$room->id],['class'=>'fa fa-bars btn btn-success btn-sm']) !!}
51 | {{ Form::button('', ['type'=>'submit','class'=>'btn btn-danger btn-sm fa fa-trash','onclick'=>'return confirm("Are you sure you want to delete this?")']) }}
52 | {!! Form::close() !!}
53 |
54 |
55 |
56 | @endforeach
57 |
58 | @endsection
59 |
--------------------------------------------------------------------------------
/resources/views/sessions/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | Login
5 | @endsection
6 |
7 | @section('content')
8 |
9 | Login
10 |
11 |
12 | @if($errors->any())
13 |
14 |
15 | @foreach ($errors->all() as $error)
16 | {{ $error }}
17 | @endforeach
18 |
19 |
20 | @endif
21 |
22 |
41 |
42 | @endsection
--------------------------------------------------------------------------------
/resources/views/user/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section('title')
4 | {{ auth()->user()->name }}
5 | @endsection
6 |
7 | @section('content')
8 | User Profile
9 |
10 |
11 |
12 |
13 |
14 | User Info
15 |
16 |
17 |
18 | ID
19 | {{ $user->id }}
20 |
21 |
22 | Name
23 | {{ $user->name }}
24 |
25 |
26 | Email
27 | {{ $user->email }}
28 |
29 |
30 | Registered At
31 | {{ $user->created_at->diffForHumans() }}
32 |
33 |
34 |
35 | Account Updated At
36 | {{ $user->created_at->diffForHumans() }}
37 |
38 |
39 |
40 | @endsection
--------------------------------------------------------------------------------
/routes/api.php:
--------------------------------------------------------------------------------
1 | get('/user', function (Request $request) {
17 | return $request->user();
18 | });
19 |
--------------------------------------------------------------------------------
/routes/channels.php:
--------------------------------------------------------------------------------
1 | id === (int) $id;
16 | });
17 |
--------------------------------------------------------------------------------
/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
18 | })->describe('Display an inspiring quote');
19 |
--------------------------------------------------------------------------------
/routes/web.php:
--------------------------------------------------------------------------------
1 | name('clients.data');
9 |
10 | // Rooms
11 | Route::resource('rooms','RoomController');
12 |
13 | // Bookings
14 | Route::resource('booking','BookingController');
15 | // Cancel Bookings
16 | Route::post('booking/{room_id}/{booking_id}','BookingController@cancel')->name('booking.cancel');
17 |
18 | // Canceled Bookings
19 | Route::get('bookings/canceled','BookingController@canceledBookings')->name('booking.canceled');
20 |
21 | // Sessions
22 | Route::get('/login','SessionsController@create')->name('login');
23 | Route::post('/login','SessionsController@store');
24 | Route::get('/logout','SessionsController@destroy');
25 |
26 | // User
27 | Route::get('/user','UserController@index');
--------------------------------------------------------------------------------
/server.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | $uri = urldecode(
11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
12 | );
13 |
14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the
15 | // built-in PHP web server. This provides a convenient way to test a Laravel
16 | // application without having installed a "real" web server software here.
17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
18 | return false;
19 | }
20 |
21 | require_once __DIR__.'/public/index.php';
22 |
--------------------------------------------------------------------------------
/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/debugbar/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/tests/CreatesApplication.php:
--------------------------------------------------------------------------------
1 | make(Kernel::class)->bootstrap();
20 |
21 | Hash::setRounds(4);
22 |
23 | return $app;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/tests/Feature/ExampleTest.php:
--------------------------------------------------------------------------------
1 | get('/');
18 |
19 | $response->assertStatus(200);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tests/TestCase.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/webpack.mix.js:
--------------------------------------------------------------------------------
1 | let mix = require('laravel-mix');
2 |
3 | /*
4 | |--------------------------------------------------------------------------
5 | | Mix Asset Management
6 | |--------------------------------------------------------------------------
7 | |
8 | | Mix provides a clean, fluent API for defining some Webpack build steps
9 | | for your Laravel application. By default, we are compiling the Sass
10 | | file for the application as well as bundling up all the JS files.
11 | |
12 | */
13 |
14 | mix.js('resources/assets/js/app.js', 'public/js')
15 | .sass('resources/assets/sass/app.scss', 'public/css');
16 |
--------------------------------------------------------------------------------