first commit
This commit is contained in:
45
resources/js/app.js
Executable file
45
resources/js/app.js
Executable file
@ -0,0 +1,45 @@
|
||||
|
||||
/**
|
||||
* First we will load all of this project's JavaScript dependencies which
|
||||
* includes Vue and other libraries. It is a great starting point when
|
||||
* building robust, powerful web applications using Vue and Laravel.
|
||||
*/
|
||||
|
||||
require('./bootstrap');
|
||||
|
||||
window.Vue = require('vue');
|
||||
|
||||
/**
|
||||
* Next, we will create a fresh Vue application instance and attach it to
|
||||
* the page. Then, you may begin adding components to this application
|
||||
* or customize the JavaScript scaffolding to fit your unique needs.
|
||||
*/
|
||||
|
||||
Vue.component('example-component', require('./components/ExampleComponent.vue'));
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app'
|
||||
});
|
||||
|
||||
try {
|
||||
window.$ = window.jQuery = require('jquery');
|
||||
require('bootstrap');
|
||||
require('@fortawesome/fontawesome-free/js/all.js');
|
||||
} catch (e) {}
|
||||
|
||||
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px */
|
||||
window.openNav = function () {
|
||||
document.getElementById("mySidenav").style.width = "250px";
|
||||
document.getElementById("mySidenav").classList.remove("closed");
|
||||
document.getElementById("mySidenav").classList.add("opened");
|
||||
document.getElementById("main").style.marginLeft = "250px";
|
||||
}
|
||||
|
||||
|
||||
/* Set the width of the side navigation to 0 and the left margin of the page content to 0 */
|
||||
window.closeNav = function () {
|
||||
document.getElementById("mySidenav").style.width = "90px",
|
||||
document.getElementById("mySidenav").classList.add("closed");
|
||||
document.getElementById("mySidenav").classList.remove("opened");
|
||||
document.getElementById("main").style.marginLeft = "90px";
|
||||
}
|
56
resources/js/bootstrap.js
vendored
Executable file
56
resources/js/bootstrap.js
vendored
Executable file
@ -0,0 +1,56 @@
|
||||
|
||||
window._ = require('lodash');
|
||||
window.Popper = require('popper.js').default;
|
||||
|
||||
/**
|
||||
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
|
||||
* for JavaScript based Bootstrap features such as modals and tabs. This
|
||||
* code may be modified to fit the specific needs of your application.
|
||||
*/
|
||||
|
||||
try {
|
||||
window.$ = window.jQuery = require('jquery');
|
||||
|
||||
require('bootstrap');
|
||||
} catch (e) {}
|
||||
|
||||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
window.axios = require('axios');
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Next we will register the CSRF Token as a common header with Axios so that
|
||||
* all outgoing HTTP requests automatically have it attached. This is just
|
||||
* a simple convenience so we don't have to attach every token manually.
|
||||
*/
|
||||
|
||||
let token = document.head.querySelector('meta[name="csrf-token"]');
|
||||
|
||||
if (token) {
|
||||
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
|
||||
} else {
|
||||
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
|
||||
}
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo'
|
||||
|
||||
// window.Pusher = require('pusher-js');
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: process.env.MIX_PUSHER_APP_KEY,
|
||||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||||
// encrypted: true
|
||||
// });
|
23
resources/js/components/ExampleComponent.vue
Executable file
23
resources/js/components/ExampleComponent.vue
Executable file
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">Example Component</div>
|
||||
|
||||
<div class="card-body">
|
||||
I'm an example component.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
console.log('Component mounted.')
|
||||
}
|
||||
}
|
||||
</script>
|
19
resources/lang/en/auth.php
Executable file
19
resources/lang/en/auth.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'These credentials do not match our records.',
|
||||
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||
|
||||
];
|
19
resources/lang/en/pagination.php
Executable file
19
resources/lang/en/pagination.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Previous',
|
||||
'next' => 'Next »',
|
||||
|
||||
];
|
22
resources/lang/en/passwords.php
Executable file
22
resources/lang/en/passwords.php
Executable file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Passwords must be at least six characters and match the confirmation.',
|
||||
'reset' => 'Your password has been reset!',
|
||||
'sent' => 'We have e-mailed your password reset link!',
|
||||
'token' => 'This password reset token is invalid.',
|
||||
'user' => "We can't find a user with that e-mail address.",
|
||||
|
||||
];
|
146
resources/lang/en/validation.php
Executable file
146
resources/lang/en/validation.php
Executable file
@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'The :attribute must be accepted.',
|
||||
'active_url' => 'The :attribute is not a valid URL.',
|
||||
'after' => 'The :attribute must be a date after :date.',
|
||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
|
||||
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
||||
'array' => 'The :attribute must be an array.',
|
||||
'before' => 'The :attribute must be a date before :date.',
|
||||
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
||||
'between' => [
|
||||
'numeric' => 'The :attribute must be between :min and :max.',
|
||||
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
||||
'string' => 'The :attribute must be between :min and :max characters.',
|
||||
'array' => 'The :attribute must have between :min and :max items.',
|
||||
],
|
||||
'boolean' => 'The :attribute field must be true or false.',
|
||||
'confirmed' => 'The :attribute confirmation does not match.',
|
||||
'date' => 'The :attribute is not a valid date.',
|
||||
'date_format' => 'The :attribute does not match the format :format.',
|
||||
'different' => 'The :attribute and :other must be different.',
|
||||
'digits' => 'The :attribute must be :digits digits.',
|
||||
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'file' => 'The :attribute must be a file.',
|
||||
'filled' => 'The :attribute field must have a value.',
|
||||
'gt' => [
|
||||
'numeric' => 'The :attribute must be greater than :value.',
|
||||
'file' => 'The :attribute must be greater than :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than :value characters.',
|
||||
'array' => 'The :attribute must have more than :value items.',
|
||||
],
|
||||
'gte' => [
|
||||
'numeric' => 'The :attribute must be greater than or equal :value.',
|
||||
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than or equal :value characters.',
|
||||
'array' => 'The :attribute must have :value items or more.',
|
||||
],
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
||||
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
||||
'json' => 'The :attribute must be a valid JSON string.',
|
||||
'lt' => [
|
||||
'numeric' => 'The :attribute must be less than :value.',
|
||||
'file' => 'The :attribute must be less than :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than :value characters.',
|
||||
'array' => 'The :attribute must have less than :value items.',
|
||||
],
|
||||
'lte' => [
|
||||
'numeric' => 'The :attribute must be less than or equal :value.',
|
||||
'file' => 'The :attribute must be less than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than or equal :value characters.',
|
||||
'array' => 'The :attribute must not have more than :value items.',
|
||||
],
|
||||
'max' => [
|
||||
'numeric' => 'The :attribute may not be greater than :max.',
|
||||
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
||||
'string' => 'The :attribute may not be greater than :max characters.',
|
||||
'array' => 'The :attribute may not have more than :max items.',
|
||||
],
|
||||
'mimes' => 'The :attribute must be a file of type: :values.',
|
||||
'mimetypes' => 'The :attribute must be a file of type: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'The :attribute must be at least :min.',
|
||||
'file' => 'The :attribute must be at least :min kilobytes.',
|
||||
'string' => 'The :attribute must be at least :min characters.',
|
||||
'array' => 'The :attribute must have at least :min items.',
|
||||
],
|
||||
'not_in' => 'The selected :attribute is invalid.',
|
||||
'not_regex' => 'The :attribute format is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||
'same' => 'The :attribute and :other must match.',
|
||||
'size' => [
|
||||
'numeric' => 'The :attribute must be :size.',
|
||||
'file' => 'The :attribute must be :size kilobytes.',
|
||||
'string' => 'The :attribute must be :size characters.',
|
||||
'array' => 'The :attribute must contain :size items.',
|
||||
],
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'uploaded' => 'The :attribute failed to upload.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [],
|
||||
|
||||
];
|
12
resources/lang/fr.json
Executable file
12
resources/lang/fr.json
Executable file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"Verify Email Address": "Vérification d'adresse email",
|
||||
"Please click the button below to verify your email address." : "Veuillez utiliser le bouton ci-dessous pour vérifier votre adresse email.",
|
||||
"If you did not create an account, no further action is required." : "Si vous n'avez pas créé de compte aucune action supplémentaire n'est requise.",
|
||||
"Reset Password Notification": "Renouvellement du mot de passe",
|
||||
"You are receiving this email because we received a password reset request for your account.": "Vous recevez ce message parce que nous avons reçu une demande de renouvellement du mot de passe pour votre compte.",
|
||||
"Reset Password": "Renouvellement",
|
||||
"If you did not request a password reset, no further action is required." : "Si vous n'avez pas fait cette demande, aucune action complémentaire n'est requise.",
|
||||
"Hello!": "Bonjour !",
|
||||
"Have a good day": "Bonne journée !",
|
||||
"Regards": "Cordialement"
|
||||
}
|
17
resources/lang/fr/auth.php
Executable file
17
resources/lang/fr/auth.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'Ces identifiants ne correspondent pas à nos enregistrements',
|
||||
'throttle' => 'Tentatives de connexion trop nombreuses. Veuillez essayer de nouveau dans :seconds secondes.',
|
||||
];
|
17
resources/lang/fr/pagination.php
Executable file
17
resources/lang/fr/pagination.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Précédent',
|
||||
'next' => 'Suivant »',
|
||||
];
|
20
resources/lang/fr/passwords.php
Executable file
20
resources/lang/fr/passwords.php
Executable file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Les mots de passe doivent contenir au moins six caractères et être identiques.',
|
||||
'reset' => 'Votre mot de passe a été réinitialisé !',
|
||||
'sent' => 'Nous vous avons envoyé par courriel le lien de réinitialisation du mot de passe !',
|
||||
'token' => "Ce jeton de réinitialisation du mot de passe n'est pas valide.",
|
||||
'user' => "Aucun utilisateur n'a été trouvé avec cette adresse courriel.",
|
||||
];
|
174
resources/lang/fr/validation.php
Executable file
174
resources/lang/fr/validation.php
Executable file
@ -0,0 +1,174 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'Le champ :attribute doit être accepté.',
|
||||
'active_url' => "Le champ :attribute n'est pas une URL valide.",
|
||||
'after' => 'Le champ :attribute doit être une date postérieure au :date.',
|
||||
'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.',
|
||||
'alpha' => 'Le champ :attribute doit contenir uniquement des lettres.',
|
||||
'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.',
|
||||
'alpha_num' => 'Le champ :attribute doit contenir uniquement des chiffres et des lettres.',
|
||||
'array' => 'Le champ :attribute doit être un tableau.',
|
||||
'before' => 'Le champ :attribute doit être une date antérieure au :date.',
|
||||
'before_or_equal' => 'Le champ :attribute doit être une date antérieure ou égale au :date.',
|
||||
'between' => [
|
||||
'numeric' => 'La valeur de :attribute doit être comprise entre :min et :max.',
|
||||
'file' => 'La taille du fichier de :attribute doit être comprise entre :min et :max kilo-octets.',
|
||||
'string' => 'Le texte :attribute doit contenir entre :min et :max caractères.',
|
||||
'array' => 'Le tableau :attribute doit contenir entre :min et :max éléments.',
|
||||
],
|
||||
'boolean' => 'Le champ :attribute doit être vrai ou faux.',
|
||||
'confirmed' => 'Le champ de confirmation :attribute ne correspond pas.',
|
||||
'date' => "Le champ :attribute n'est pas une date valide.",
|
||||
'date_format' => 'Le champ :attribute ne correspond pas au format :format.',
|
||||
'different' => 'Les champs :attribute et :other doivent être différents.',
|
||||
'digits' => 'Le champ :attribute doit contenir :digits chiffres.',
|
||||
'digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.',
|
||||
'dimensions' => "La taille de l'image :attribute n'est pas conforme.",
|
||||
'distinct' => 'Le champ :attribute a une valeur en double.',
|
||||
'email' => 'Le champ :attribute doit être une adresse courriel valide.',
|
||||
'exists' => 'Le champ :attribute sélectionné est invalide.',
|
||||
'file' => 'Le champ :attribute doit être un fichier.',
|
||||
'filled' => 'Le champ :attribute doit avoir une valeur.',
|
||||
'gt' => [
|
||||
'numeric' => 'La valeur de :attribute doit être supérieure à :value.',
|
||||
'file' => 'La taille du fichier de :attribute doit être supérieure à :value kilo-octets.',
|
||||
'string' => 'Le texte :attribute doit contenir plus de :value caractères.',
|
||||
'array' => 'Le tableau :attribute doit contenir plus de :value éléments.',
|
||||
],
|
||||
'gte' => [
|
||||
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :value.',
|
||||
'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :value kilo-octets.',
|
||||
'string' => 'Le texte :attribute doit contenir au moins :value caractères.',
|
||||
'array' => 'Le tableau :attribute doit contenir au moins :value éléments.',
|
||||
],
|
||||
'image' => 'Le champ :attribute doit être une image.',
|
||||
'in' => 'Le champ :attribute est invalide.',
|
||||
'in_array' => "Le champ :attribute n'existe pas dans :other.",
|
||||
'integer' => 'Le champ :attribute doit être un entier.',
|
||||
'ip' => 'Le champ :attribute doit être une adresse IP valide.',
|
||||
'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.',
|
||||
'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.',
|
||||
'json' => 'Le champ :attribute doit être un document JSON valide.',
|
||||
'lt' => [
|
||||
'numeric' => 'La valeur de :attribute doit être inférieure à :value.',
|
||||
'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilo-octets.',
|
||||
'string' => 'Le texte :attribute doit contenir moins de :value caractères.',
|
||||
'array' => 'Le tableau :attribute doit contenir moins de :value éléments.',
|
||||
],
|
||||
'lte' => [
|
||||
'numeric' => 'La valeur de :attribute doit être inférieure ou égale à :value.',
|
||||
'file' => 'La taille du fichier de :attribute doit être inférieure ou égale à :value kilo-octets.',
|
||||
'string' => 'Le texte :attribute doit contenir au plus :value caractères.',
|
||||
'array' => 'Le tableau :attribute doit contenir au plus :value éléments.',
|
||||
],
|
||||
'max' => [
|
||||
'numeric' => 'La valeur de :attribute ne peut être supérieure à :max.',
|
||||
'file' => 'La taille du fichier de :attribute ne peut pas dépasser :max kilo-octets.',
|
||||
'string' => 'Le texte de :attribute ne peut contenir plus de :max caractères.',
|
||||
'array' => 'Le tableau :attribute ne peut contenir plus de :max éléments.',
|
||||
],
|
||||
'mimes' => 'Le champ :attribute doit être un fichier de type : :values.',
|
||||
'mimetypes' => 'Le champ :attribute doit être un fichier de type : :values.',
|
||||
'min' => [
|
||||
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :min.',
|
||||
'file' => 'La taille du fichier de :attribute doit être supérieure à :min kilo-octets.',
|
||||
'string' => 'Le texte :attribute doit contenir au moins :min caractères.',
|
||||
'array' => 'Le tableau :attribute doit contenir au moins :min éléments.',
|
||||
],
|
||||
'not_in' => "Le champ :attribute sélectionné n'est pas valide.",
|
||||
'not_regex' => "Le format du champ :attribute n'est pas valide.",
|
||||
'numeric' => 'Le champ :attribute doit contenir un nombre.',
|
||||
'present' => 'Le champ :attribute doit être présent.',
|
||||
'regex' => 'Le format du champ :attribute est invalide.',
|
||||
'required' => 'Le champ :attribute est obligatoire.',
|
||||
'required_if' => 'Le champ :attribute est obligatoire quand la valeur de :other est :value.',
|
||||
'required_unless' => 'Le champ :attribute est obligatoire sauf si :other est :values.',
|
||||
'required_with' => 'Le champ :attribute est obligatoire quand :values est présent.',
|
||||
'required_with_all' => 'Le champ :attribute est obligatoire quand :values est présent.',
|
||||
'required_without' => "Le champ :attribute est obligatoire quand :values n'est pas présent.",
|
||||
'required_without_all' => "Le champ :attribute est requis quand aucun de :values n'est présent.",
|
||||
'same' => 'Les champs :attribute et :other doivent être identiques.',
|
||||
'size' => [
|
||||
'numeric' => 'La valeur de :attribute doit être :size.',
|
||||
'file' => 'La taille du fichier de :attribute doit être de :size kilo-octets.',
|
||||
'string' => 'Le texte de :attribute doit contenir :size caractères.',
|
||||
'array' => 'Le tableau :attribute doit contenir :size éléments.',
|
||||
],
|
||||
'string' => 'Le champ :attribute doit être une chaîne de caractères.',
|
||||
'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.',
|
||||
'unique' => 'La valeur du champ :attribute est déjà utilisée.',
|
||||
'uploaded' => "Le fichier du champ :attribute n'a pu être téléversé.",
|
||||
'url' => "Le format de l'URL de :attribute n'est pas valide.",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [
|
||||
'name' => 'nom',
|
||||
'username' => "nom d'utilisateur",
|
||||
'email' => 'adresse courriel',
|
||||
'first_name' => 'prénom',
|
||||
'last_name' => 'nom',
|
||||
'password' => 'mot de passe',
|
||||
'password_confirmation' => 'confirmation du mot de passe',
|
||||
'city' => 'ville',
|
||||
'country' => 'pays',
|
||||
'address' => 'adresse',
|
||||
'phone' => 'téléphone',
|
||||
'mobile' => 'portable',
|
||||
'age' => 'âge',
|
||||
'sex' => 'sexe',
|
||||
'gender' => 'genre',
|
||||
'day' => 'jour',
|
||||
'month' => 'mois',
|
||||
'year' => 'année',
|
||||
'hour' => 'heure',
|
||||
'minute' => 'minute',
|
||||
'second' => 'seconde',
|
||||
'title' => 'titre',
|
||||
'content' => 'contenu',
|
||||
'description' => 'description',
|
||||
'excerpt' => 'extrait',
|
||||
'date' => 'date',
|
||||
'time' => 'heure',
|
||||
'available' => 'disponible',
|
||||
'size' => 'taille',
|
||||
],
|
||||
];
|
25
resources/sass/_variables.scss
Executable file
25
resources/sass/_variables.scss
Executable file
@ -0,0 +1,25 @@
|
||||
|
||||
// Body
|
||||
$body-bg: #343a40;
|
||||
|
||||
// Typography
|
||||
$font-family-sans-serif: "Nunito", sans-serif;
|
||||
$font-size-base: 0.9rem;
|
||||
$line-height-base: 1.6;
|
||||
|
||||
// Colors
|
||||
$blue: #3490dc;
|
||||
$indigo: #6574cd;
|
||||
$purple: #9561e2;
|
||||
$pink: #f66D9b;
|
||||
$red: #e3342f;
|
||||
$orange: #f6993f;
|
||||
$yellow: #ffed4a;
|
||||
$green: #38c172;
|
||||
$teal: #4dc0b5;
|
||||
$cyan: #6cb2eb;
|
||||
|
||||
// Card
|
||||
$card-border-width: 4px;
|
||||
$card-border-radius: .3rem;
|
||||
$card-border-color: rgba(255, 242, 242, .3);
|
93
resources/sass/app.scss
Executable file
93
resources/sass/app.scss
Executable file
@ -0,0 +1,93 @@
|
||||
// Fonts
|
||||
@import url('https://fonts.googleapis.com/css?family=Nunito');
|
||||
// Variables
|
||||
@import 'variables';
|
||||
// Bootstrap
|
||||
@import '~bootstrap/scss/bootstrap';
|
||||
|
||||
.navbar-laravel {
|
||||
background-color: #fff;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
body {
|
||||
padding-top: 70px;
|
||||
}
|
||||
|
||||
// Card
|
||||
$card-border-width: 4px;
|
||||
$card-border-radius: .3rem;
|
||||
$card-border-color: rgba(255, 242, 242, .3);
|
||||
|
||||
//Sidebar
|
||||
/* The side navigation menu */
|
||||
.sidenav {
|
||||
height: 100%; /* 100% Full-height */
|
||||
width: 90px; /* 0 width - change this with JavaScript */
|
||||
position: fixed; /* Stay in place */
|
||||
z-index: 1; /* Stay on top */
|
||||
top: 0; /* Stay at the top */
|
||||
left: 0;
|
||||
background-color: #111; /* Black*/
|
||||
overflow-x: hidden; /* Disable horizontal scroll */
|
||||
padding-top: 60px; /* Place content 60px from the top */
|
||||
transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
|
||||
}
|
||||
|
||||
.closed > a > span {
|
||||
display: none;
|
||||
}
|
||||
.opened a.openbtn {
|
||||
display: none;
|
||||
}
|
||||
.closed a.closebtn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* The navigation menu links */
|
||||
.sidenav a {
|
||||
padding: 8px 8px 8px 32px;
|
||||
text-decoration: none;
|
||||
font-size: 25px;
|
||||
color: #818181;
|
||||
display: block;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
/* When you mouse over the navigation links, change their color */
|
||||
.sidenav a:hover {
|
||||
color: #f1f1f1;
|
||||
}
|
||||
|
||||
/* Position and style the close button (top right corner) */
|
||||
.sidenav .closebtn {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 25px;
|
||||
font-size: 36px;
|
||||
margin-left: 50px;
|
||||
}
|
||||
.sidenav .openbtn {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 20px;
|
||||
font-size: 36px;
|
||||
margin-left: 50px;
|
||||
}
|
||||
|
||||
/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
|
||||
#main {
|
||||
transition: margin-left .5s;
|
||||
margin-left: 90px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
|
||||
@media screen and (max-height: 450px) {
|
||||
.sidenav {
|
||||
padding-top: 15px;
|
||||
}
|
||||
.sidenav a {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
33
resources/views/auth/login.blade.php
Executable file
33
resources/views/auth/login.blade.php
Executable file
@ -0,0 +1,33 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Connexion')
|
||||
@endslot
|
||||
<form method="POST" action="{{ route('login') }}">
|
||||
{{ csrf_field() }}
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Adresse email'),
|
||||
'type' => 'email',
|
||||
'name' => 'email',
|
||||
'required' => true,
|
||||
])
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Mot de passe'),
|
||||
'type' => 'password',
|
||||
'name' => 'password',
|
||||
'required' => true,
|
||||
])
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="remember" name="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
<label class="custom-control-label" for="remember"> @lang('Se rappeler de moi')</label>
|
||||
</div>
|
||||
@component('components.button')
|
||||
@lang('Connexion')
|
||||
@endcomponent
|
||||
<a class="btn btn-link" href="{{ route('password.request') }}">
|
||||
@lang('Mot de passe oublié ?')
|
||||
</a>
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
25
resources/views/auth/passwords/email.blade.php
Executable file
25
resources/views/auth/passwords/email.blade.php
Executable file
@ -0,0 +1,25 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Renouvellement du mot de passe')
|
||||
@endslot
|
||||
<form method="POST" action="{{ route('password.email') }}">
|
||||
{{ csrf_field() }}
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Adresse email'),
|
||||
'type' => 'email',
|
||||
'name' => 'email',
|
||||
'required' => true,
|
||||
])
|
||||
@component('components.button')
|
||||
@lang('Envoi de la demande')
|
||||
@endcomponent
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
33
resources/views/auth/passwords/reset.blade.php
Executable file
33
resources/views/auth/passwords/reset.blade.php
Executable file
@ -0,0 +1,33 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Renouvellement du mot de passe')
|
||||
@endslot
|
||||
<form method="POST" action="{{ route('password.request') }}">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Adresse email'),
|
||||
'type' => 'email',
|
||||
'name' => 'email',
|
||||
'required' => true,
|
||||
])
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Mot de passe'),
|
||||
'type' => 'password',
|
||||
'name' => 'password',
|
||||
'required' => true,
|
||||
])
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Confirmation du mot de passe'),
|
||||
'type' => 'password',
|
||||
'name' => 'password_confirmation',
|
||||
'required' => true,
|
||||
])
|
||||
@component('components.button')
|
||||
@lang('Renouveller')
|
||||
@endcomponent
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
44
resources/views/auth/register.blade.php
Executable file
44
resources/views/auth/register.blade.php
Executable file
@ -0,0 +1,44 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Inscription')
|
||||
@endslot
|
||||
<form method="POST" action="{{ route('register') }}">
|
||||
{{ csrf_field() }}
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Nom'),
|
||||
'type' => 'text',
|
||||
'name' => 'name',
|
||||
'required' => true,
|
||||
])
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Adresse email'),
|
||||
'type' => 'email',
|
||||
'name' => 'email',
|
||||
'required' => true,
|
||||
])
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Mot de passe'),
|
||||
'type' => 'password',
|
||||
'name' => 'password',
|
||||
'required' => true,
|
||||
])
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Confirmation du mot de passe'),
|
||||
'type' => 'password',
|
||||
'name' => 'password_confirmation',
|
||||
'required' => true,
|
||||
])
|
||||
<div class="form-group">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="ok" name="ok" required>
|
||||
<label class="custom-control-label" for="ok"> @lang('J\'accepte les termes et conditions de la politique de confidentialité.')</label>
|
||||
</div>
|
||||
</div>
|
||||
@component('components.button')
|
||||
@lang('Inscription')
|
||||
@endcomponent
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
15
resources/views/auth/verify.blade.php
Executable file
15
resources/views/auth/verify.blade.php
Executable file
@ -0,0 +1,15 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Vérification de votre adresse email')
|
||||
@endslot
|
||||
@if (session('resent'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
@lang("Un nouveau lien de vérification a été envoyé à votre adresse email.")
|
||||
</div>
|
||||
@endif
|
||||
<p>@lang("Avant d'utiliser ce site veuillez trouver le lien de vérification dans vos emails")</p>
|
||||
@lang("Si vous n'avez pas reçu l'email ") <a href="{{ route('verification.resend') }}">@lang("cliquez ici pour en recevoir un nouveau")</a>.
|
||||
@endcomponent
|
||||
@endsection
|
3
resources/views/components/button.blade.php
Executable file
3
resources/views/components/button.blade.php
Executable file
@ -0,0 +1,3 @@
|
||||
<button type="submit" class="btn @isset($color){{ ' btn-' . $color }}@else btn-primary @endisset float-right">
|
||||
{{ $slot }}
|
||||
</button>
|
8
resources/views/components/card.blade.php
Executable file
8
resources/views/components/card.blade.php
Executable file
@ -0,0 +1,8 @@
|
||||
<div class="card text-white bg-dark mb-3">
|
||||
<h4 class="card-header">
|
||||
{{ $title }}
|
||||
</h4>
|
||||
<div class="card-body">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</div>
|
23
resources/views/home.blade.php
Executable file
23
resources/views/home.blade.php
Executable file
@ -0,0 +1,23 @@
|
||||
@extends('layouts.logged')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">Dashboard</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
You are logged in!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
20
resources/views/kart/create.blade.php
Executable file
20
resources/views/kart/create.blade.php
Executable file
@ -0,0 +1,20 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Ajouter un karting')
|
||||
@endslot
|
||||
<form method="POST" action="{{ route('kart.store') }}">
|
||||
{{ csrf_field() }}
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Nom'),
|
||||
'type' => 'text',
|
||||
'name' => 'name',
|
||||
'required' => true,
|
||||
])
|
||||
@component('components.button')
|
||||
@lang('Envoyer')
|
||||
@endcomponent
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
9
resources/views/kart/show.blade.php
Executable file
9
resources/views/kart/show.blade.php
Executable file
@ -0,0 +1,9 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Ajouter une team')
|
||||
@endslot
|
||||
|
||||
@endcomponent
|
||||
@endsection
|
47
resources/views/layouts/app.blade.php
Executable file
47
resources/views/layouts/app.blade.php
Executable file
@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>{{ config('app.name', 'Album') }}</title>
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
|
||||
@yield('css')
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="{{ route('home') }}">{{ config('app.name', 'Album') }}</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
@guest
|
||||
<li class="nav-item{{ currentRoute(route('login')) }}"><a class="nav-link" href="{{ route('login') }}">@lang('Connexion')</a></li>
|
||||
<li class="nav-item{{ currentRoute(route('register')) }}"><a class="nav-link" href="{{ route('register') }}">@lang('Inscription')</a></li>
|
||||
@else
|
||||
<li class="nav-item">
|
||||
<a id="logout" class="nav-link" href="{{ route('logout') }}">@lang('Déconnexion')</a>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="hide">
|
||||
{{ csrf_field() }}
|
||||
</form>
|
||||
</li>
|
||||
@endguest
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@yield('content')
|
||||
<script src="{{ asset('js/app.js') }}"></script>
|
||||
@yield('script')
|
||||
<script>
|
||||
$(() => {
|
||||
$('#logout').click((e) => {
|
||||
e.preventDefault()
|
||||
$('#logout-form').submit()
|
||||
})
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
10
resources/views/layouts/form.blade.php
Executable file
10
resources/views/layouts/form.blade.php
Executable file
@ -0,0 +1,10 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="container py-5">
|
||||
<div class="row">
|
||||
<div class="col-md-6 offset-md-3">
|
||||
@yield('card')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
71
resources/views/layouts/logged.blade.php
Executable file
71
resources/views/layouts/logged.blade.php
Executable file
@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>{{ config('app.name', 'Album') }}</title>
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
|
||||
@yield('css')
|
||||
</head>
|
||||
<body>
|
||||
<div id="mySidenav" class="sidenav closed">
|
||||
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()"><i class="fas fa-times"></i></a>
|
||||
<img src="{{ url('img/timelaps-logo.png') }}" >
|
||||
<a href="javascript:void(0)" class="openbtn" onclick="openNav()"><i class="fas fa-bars"></i></a>
|
||||
<br>
|
||||
<a href="#"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
|
||||
<a href="#"><i class="fas fa-car-crash"></i> <span>Karts</span></a>
|
||||
<a href="#"><i class="fab fa-accessible-icon"></i> <span>Pilotes</span></a>
|
||||
<a href="#"><i class="fas fa-cogs"></i> <span>Paramètres</span></a>
|
||||
<a href="#"><i class="fas fa-flag-checkered"></i> <span>Démarrer</span></a>
|
||||
<a id="logout" class="nav-link" href="{{ route('logout') }}"><i class="fas fa-sign-out-alt"></i> <span>@lang('Déconnexion')</span></a>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="hide">
|
||||
{{ csrf_field() }}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<!--<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="{{ route('home') }}">{{ config('app.name', 'Album') }}</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
||||
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
@guest
|
||||
<li class="nav-item{{ currentRoute(route('login')) }}"><a class="nav-link"
|
||||
href="{{ route('login') }}">@lang('Connexion')</a>
|
||||
</li>
|
||||
<li class="nav-item{{ currentRoute(route('register')) }}"><a class="nav-link"
|
||||
href="{{ route('register') }}">@lang('Inscription')</a>
|
||||
</li>
|
||||
@else
|
||||
<li class="nav-item">
|
||||
<a id="logout" class="nav-link" href="{{ route('logout') }}">@lang('Déconnexion')</a>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="hide">
|
||||
{{ csrf_field() }}
|
||||
</form>
|
||||
</li>
|
||||
@endguest
|
||||
</ul>
|
||||
</div>
|
||||
</nav>-->
|
||||
@yield('content')
|
||||
|
||||
</div>
|
||||
<script src="{{ asset('js/app.js') }}"></script>
|
||||
@yield('script')
|
||||
<script>
|
||||
$(() => {
|
||||
$('#logout').click((e) => {
|
||||
e.preventDefault()
|
||||
$('#logout-form').submit()
|
||||
})
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
9
resources/views/partials/form-group.blade.php
Executable file
9
resources/views/partials/form-group.blade.php
Executable file
@ -0,0 +1,9 @@
|
||||
<div class="form-group">
|
||||
<label for="{{ $name }}">{{ $title }}</label>
|
||||
<input id="{{ $name }}" type="{{ $type }}" class="form-control{{ $errors->has($name) ? ' is-invalid' : '' }}" name="{{ $name }}" value="{{ old($name, isset($value) ? $value : '') }}" {{ $required ? 'required' : ''}}>
|
||||
@if ($errors->has($name))
|
||||
<div class="invalid-feedback">
|
||||
{{ $errors->first($name) }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
20
resources/views/team/create.blade.php
Executable file
20
resources/views/team/create.blade.php
Executable file
@ -0,0 +1,20 @@
|
||||
@extends('layouts.form')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('Ajouter une team')
|
||||
@endslot
|
||||
<form method="POST" action="{{ route('team.store') }}">
|
||||
{{ csrf_field() }}
|
||||
@include('partials.form-group', [
|
||||
'title' => __('Nom'),
|
||||
'type' => 'text',
|
||||
'name' => 'name',
|
||||
'required' => true,
|
||||
])
|
||||
@component('components.button')
|
||||
@lang('Envoyer')
|
||||
@endcomponent
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
Reference in New Issue
Block a user