This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Services\Admin; | |
| use \App\Helpers\PermissionHelper; | |
| use \App\Repositories\Contracts\CompanyPackageContract as CompanyPackageRepository; | |
| use \App\Repositories\Contracts\SchoolClassContract as SchoolClassRepository; | |
| use \App\Repositories\Contracts\UserContract as UserRepository; | |
| use \App\Services\Admin\Contracts\SchoolClassContract; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| // Services de Autenticação | |
| use \App\Services\Contracts\UserAuthContract; | |
| use \App\Services\UserAuthService; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <span> | |
| <v-checkbox | |
| style="padding-top: 20px;" | |
| v-model="model.commission" | |
| hide-details | |
| class="shrink mr-2 mt-0" | |
| label="Adicionar taxa de comissão" | |
| ></v-checkbox> | |
| <v-text-field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <span> | |
| <div @click="inputComission"> | |
| <v-checkbox | |
| style="padding-top: 20px;" | |
| v-bind="bindCommission" | |
| hide-details | |
| class="shrink mr-2 mt-0" | |
| label="Adicionar taxa de comissão" | |
| ></v-checkbox> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <span> | |
| <v-checkbox | |
| v-model="checkbox" | |
| hide-details | |
| class="shrink mr-2 mt-0" | |
| label="Adicionar taxa de comissão" | |
| ></v-checkbox> | |
| <v-text-field | |
| :disabled="!checkbox" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-text-field | |
| v-bind="bind" | |
| @input="input" | |
| v-on="$listeners" | |
| :rules="[rules.required, rules.length(4)]" | |
| color="green" | |
| :label="label" | |
| required | |
| @keyup.enter="$emit('enter', true)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-dialog ref="dialog" v-model="modal" :return-value.sync="model" persistent width="290px"> | |
| <template v-slot:activator="{ on }"> | |
| <v-text-field v-model="model" :label="label" prepend-icon="mdi-calendar" readonly v-on="on"></v-text-field> | |
| </template> | |
| <v-date-picker v-model="model" scrollable locale="pt-br"> | |
| <v-spacer></v-spacer> | |
| <v-btn text color="primary" @click="modal = false">Cancel</v-btn> | |
| <v-btn text color="primary" @click="$refs.dialog.save(model)">OK</v-btn> | |
| </v-date-picker> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import store from '../store' | |
| export default { | |
| install (Vue) { | |
| Vue.directive('permission', { | |
| inserted (el, binding, vnode) { | |
| if (binding.arg === 'can') { | |
| let permission = store.state.user.permissions | |
| if (permission !== []) { | |
| if (permission.includes(binding.value)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Repositories; | |
| use \App\Repositories\Contracts\UserInterface; | |
| use \App\User; | |
| class UserRepository implements UserInterface | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-app id="app"> | |
| <v-navigation-drawer v-model="drawer" app dark width="260"> | |
| <v-img | |
| src="https://demos.creative-tim.com/vue-material-dashboard/img/sidebar-2.32103624.jpg" | |
| height="100%" | |
| > | |
| <v-list-item> | |
| <v-list-item-title class="headline">Padrone</v-list-item-title> | |
| </v-list-item> |