138 | `
139 | }
140 |
141 | scrollToBottom();
142 | })
143 | }
144 |
145 |
146 | window.Echo.private('notif.' + userIdLogin).listen('Notif', function(e){
147 | const Toast = Swal.mixin({
148 | toast: true,
149 | position: 'top-end',
150 | showConfirmButton: false,
151 | timer: 3000,
152 | timerProgressBar: true,
153 | didOpen: (toast) => {
154 | toast.addEventListener('mouseenter', Swal.stopTimer)
155 | toast.addEventListener('mouseleave', Swal.resumeTimer)
156 | }
157 | })
158 |
159 | Toast.fire(swalOption = {
160 | icon: 'success',
161 | title: 'new message from ' + e.senderUserName
162 | })
163 | });
--------------------------------------------------------------------------------
/resources/js/bootstrap.js:
--------------------------------------------------------------------------------
1 | window._ = require('lodash');
2 |
3 | try {
4 | require('bootstrap');
5 | } catch (e) {}
6 |
7 | /**
8 | * We'll load the axios HTTP library which allows us to easily issue requests
9 | * to our Laravel back-end. This library automatically handles sending the
10 | * CSRF token as a header based on the value of the "XSRF" token cookie.
11 | */
12 |
13 | window.axios = require('axios');
14 |
15 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
16 |
17 | /**
18 | * Echo exposes an expressive API for subscribing to channels and listening
19 | * for events that are broadcast by Laravel. Echo and event broadcasting
20 | * allows your team to easily build robust real-time web applications.
21 | */
22 |
23 | import Echo from 'laravel-echo';
24 |
25 | window.Pusher = require('pusher-js');
26 |
27 | window.Echo = new Echo({
28 | broadcaster: 'pusher',
29 | key: process.env.MIX_PUSHER_APP_KEY,
30 | cluster: process.env.MIX_PUSHER_APP_CLUSTER,
31 | forceTLS: true
32 | });
33 |
--------------------------------------------------------------------------------
/resources/lang/en/auth.php:
--------------------------------------------------------------------------------
1 | 'These credentials do not match our records.',
17 | 'password' => 'The provided password is incorrect.',
18 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
19 |
20 | ];
21 |
--------------------------------------------------------------------------------
/resources/lang/en/pagination.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 | 'next' => 'Next »',
18 |
19 | ];
20 |
--------------------------------------------------------------------------------
/resources/lang/en/passwords.php:
--------------------------------------------------------------------------------
1 | 'Your password has been reset!',
17 | 'sent' => 'We have emailed your password reset link!',
18 | 'throttled' => 'Please wait before retrying.',
19 | 'token' => 'This password reset token is invalid.',
20 | 'user' => "We can't find a user with that email address.",
21 |
22 | ];
23 |
--------------------------------------------------------------------------------
/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
18 | 'active_url' => 'The :attribute is not a valid URL.',
19 | 'after' => 'The :attribute must be a date after :date.',
20 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
21 | 'alpha' => 'The :attribute must only contain letters.',
22 | 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
23 | 'alpha_num' => 'The :attribute must only contain letters and numbers.',
24 | 'array' => 'The :attribute must be an array.',
25 | 'before' => 'The :attribute must be a date before :date.',
26 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
27 | 'between' => [
28 | 'numeric' => 'The :attribute must be between :min and :max.',
29 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
30 | 'string' => 'The :attribute must be between :min and :max characters.',
31 | 'array' => 'The :attribute must have between :min and :max items.',
32 | ],
33 | 'boolean' => 'The :attribute field must be true or false.',
34 | 'confirmed' => 'The :attribute confirmation does not match.',
35 | 'current_password' => 'The password is incorrect.',
36 | 'date' => 'The :attribute is not a valid date.',
37 | 'date_equals' => 'The :attribute must be a date equal to :date.',
38 | 'date_format' => 'The :attribute does not match the format :format.',
39 | 'declined' => 'The :attribute must be declined.',
40 | 'declined_if' => 'The :attribute must be declined when :other is :value.',
41 | 'different' => 'The :attribute and :other must be different.',
42 | 'digits' => 'The :attribute must be :digits digits.',
43 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
44 | 'dimensions' => 'The :attribute has invalid image dimensions.',
45 | 'distinct' => 'The :attribute field has a duplicate value.',
46 | 'email' => 'The :attribute must be a valid email address.',
47 | 'ends_with' => 'The :attribute must end with one of the following: :values.',
48 | 'enum' => 'The selected :attribute is invalid.',
49 | 'exists' => 'The selected :attribute is invalid.',
50 | 'file' => 'The :attribute must be a file.',
51 | 'filled' => 'The :attribute field must have a value.',
52 | 'gt' => [
53 | 'numeric' => 'The :attribute must be greater than :value.',
54 | 'file' => 'The :attribute must be greater than :value kilobytes.',
55 | 'string' => 'The :attribute must be greater than :value characters.',
56 | 'array' => 'The :attribute must have more than :value items.',
57 | ],
58 | 'gte' => [
59 | 'numeric' => 'The :attribute must be greater than or equal to :value.',
60 | 'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
61 | 'string' => 'The :attribute must be greater than or equal to :value characters.',
62 | 'array' => 'The :attribute must have :value items or more.',
63 | ],
64 | 'image' => 'The :attribute must be an image.',
65 | 'in' => 'The selected :attribute is invalid.',
66 | 'in_array' => 'The :attribute field does not exist in :other.',
67 | 'integer' => 'The :attribute must be an integer.',
68 | 'ip' => 'The :attribute must be a valid IP address.',
69 | 'ipv4' => 'The :attribute must be a valid IPv4 address.',
70 | 'ipv6' => 'The :attribute must be a valid IPv6 address.',
71 | 'mac_address' => 'The :attribute must be a valid MAC address.',
72 | 'json' => 'The :attribute must be a valid JSON string.',
73 | 'lt' => [
74 | 'numeric' => 'The :attribute must be less than :value.',
75 | 'file' => 'The :attribute must be less than :value kilobytes.',
76 | 'string' => 'The :attribute must be less than :value characters.',
77 | 'array' => 'The :attribute must have less than :value items.',
78 | ],
79 | 'lte' => [
80 | 'numeric' => 'The :attribute must be less than or equal to :value.',
81 | 'file' => 'The :attribute must be less than or equal to :value kilobytes.',
82 | 'string' => 'The :attribute must be less than or equal to :value characters.',
83 | 'array' => 'The :attribute must not have more than :value items.',
84 | ],
85 | 'max' => [
86 | 'numeric' => 'The :attribute must not be greater than :max.',
87 | 'file' => 'The :attribute must not be greater than :max kilobytes.',
88 | 'string' => 'The :attribute must not be greater than :max characters.',
89 | 'array' => 'The :attribute must not have more than :max items.',
90 | ],
91 | 'mimes' => 'The :attribute must be a file of type: :values.',
92 | 'mimetypes' => 'The :attribute must be a file of type: :values.',
93 | 'min' => [
94 | 'numeric' => 'The :attribute must be at least :min.',
95 | 'file' => 'The :attribute must be at least :min kilobytes.',
96 | 'string' => 'The :attribute must be at least :min characters.',
97 | 'array' => 'The :attribute must have at least :min items.',
98 | ],
99 | 'multiple_of' => 'The :attribute must be a multiple of :value.',
100 | 'not_in' => 'The selected :attribute is invalid.',
101 | 'not_regex' => 'The :attribute format is invalid.',
102 | 'numeric' => 'The :attribute must be a number.',
103 | 'password' => 'The password is incorrect.',
104 | 'present' => 'The :attribute field must be present.',
105 | 'prohibited' => 'The :attribute field is prohibited.',
106 | 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
107 | 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
108 | 'prohibits' => 'The :attribute field prohibits :other from being present.',
109 | 'regex' => 'The :attribute format is invalid.',
110 | 'required' => 'The :attribute field is required.',
111 | 'required_if' => 'The :attribute field is required when :other is :value.',
112 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
113 | 'required_with' => 'The :attribute field is required when :values is present.',
114 | 'required_with_all' => 'The :attribute field is required when :values are present.',
115 | 'required_without' => 'The :attribute field is required when :values is not present.',
116 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
117 | 'same' => 'The :attribute and :other must match.',
118 | 'size' => [
119 | 'numeric' => 'The :attribute must be :size.',
120 | 'file' => 'The :attribute must be :size kilobytes.',
121 | 'string' => 'The :attribute must be :size characters.',
122 | 'array' => 'The :attribute must contain :size items.',
123 | ],
124 | 'starts_with' => 'The :attribute must start with one of the following: :values.',
125 | 'string' => 'The :attribute must be a string.',
126 | 'timezone' => 'The :attribute must be a valid timezone.',
127 | 'unique' => 'The :attribute has already been taken.',
128 | 'uploaded' => 'The :attribute failed to upload.',
129 | 'url' => 'The :attribute must be a valid URL.',
130 | 'uuid' => 'The :attribute must be a valid UUID.',
131 |
132 | /*
133 | |--------------------------------------------------------------------------
134 | | Custom Validation Language Lines
135 | |--------------------------------------------------------------------------
136 | |
137 | | Here you may specify custom validation messages for attributes using the
138 | | convention "attribute.rule" to name the lines. This makes it quick to
139 | | specify a specific custom language line for a given attribute rule.
140 | |
141 | */
142 |
143 | 'custom' => [
144 | 'attribute-name' => [
145 | 'rule-name' => 'custom-message',
146 | ],
147 | ],
148 |
149 | /*
150 | |--------------------------------------------------------------------------
151 | | Custom Validation Attributes
152 | |--------------------------------------------------------------------------
153 | |
154 | | The following language lines are used to swap our attribute placeholder
155 | | with something more reader friendly such as "E-Mail Address" instead
156 | | of "email". This simply helps us make our message more expressive.
157 | |
158 | */
159 |
160 | 'attributes' => [],
161 |
162 | ];
163 |
--------------------------------------------------------------------------------
/resources/views/admin/user.blade.php:
--------------------------------------------------------------------------------
1 | @extends('templates.layout')
2 |
3 | @section('body')
4 |