├── public ├── favicon.ico ├── robots.txt ├── .DS_Store ├── assets │ ├── .DS_Store │ └── images │ │ └── login-background.jpg ├── .htaccess ├── web.config ├── index.php └── css │ └── stylesheet.css ├── database ├── .gitignore ├── seeds │ └── DatabaseSeeder.php ├── migrations │ ├── 2017_11_13_005714_create_instituitions_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2017_11_19_023804_create_groups_table.php │ ├── 2017_12_27_011812_create_products_table.php │ ├── 2017_11_28_015355_create_user_groups_table.php │ ├── 2018_01_24_164217_create_moviments_table.php │ ├── 2017_03_22_231714_create_user_socials_table.php │ └── 2017_03_15_002140_create_users_table.php └── factories │ └── ModelFactory.php ├── bootstrap ├── cache │ └── .gitignore ├── autoload.php └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── views │ ├── vendor │ │ ├── mail │ │ │ ├── markdown │ │ │ │ ├── panel.blade.php │ │ │ │ ├── table.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── button.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── promotion │ │ │ │ │ └── button.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ └── message.blade.php │ │ │ └── html │ │ │ │ ├── table.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── panel.blade.php │ │ │ │ ├── promotion │ │ │ │ └── button.blade.php │ │ │ │ ├── message.blade.php │ │ │ │ ├── button.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ └── themes │ │ │ │ └── default.css │ │ ├── .DS_Store │ │ ├── pagination │ │ │ ├── simple-default.blade.php │ │ │ ├── simple-bootstrap-4.blade.php │ │ │ ├── default.blade.php │ │ │ └── bootstrap-4.blade.php │ │ └── notifications │ │ │ └── email.blade.php │ ├── .DS_Store │ ├── templates │ │ ├── formulario │ │ │ ├── submit.blade.php │ │ │ ├── password.blade.php │ │ │ ├── select.blade.php │ │ │ └── input.blade.php │ │ ├── master.blade.php │ │ └── menu-lateral.blade.php │ ├── user │ │ ├── dashboard.blade.php │ │ ├── edit.blade.php │ │ ├── form-fields.blade.php │ │ ├── index.blade.php │ │ ├── list.blade.php │ │ └── login.blade.php │ ├── instituitions │ │ ├── show.blade.php │ │ ├── edit.blade.php │ │ ├── index.blade.php │ │ └── product │ │ │ └── index.blade.php │ ├── moviment │ │ ├── index.blade.php │ │ ├── all.blade.php │ │ ├── getback.blade.php │ │ └── application.blade.php │ ├── groups │ │ ├── edit.blade.php │ │ ├── show.blade.php │ │ ├── index.blade.php │ │ └── list.blade.php │ └── welcome.blade.php ├── .DS_Store ├── assets │ ├── sass │ │ ├── app.scss │ │ └── _variables.scss │ └── js │ │ ├── app.js │ │ ├── components │ │ └── Example.vue │ │ └── bootstrap.js └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ ├── passwords.php │ └── validation.php ├── .gitattributes ├── .DS_Store ├── .gitignore ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── CreatesApplication.php └── Feature │ └── ExampleTest.php ├── app ├── Repositories │ ├── UserRepository.php │ ├── GroupRepository.php │ ├── ProductRepository.php │ ├── MovimentRepository.php │ ├── InstituitionRepository.php │ ├── GroupRepositoryEloquent.php │ ├── ProductRepositoryEloquent.php │ ├── MovimentRepositoryEloquent.php │ ├── UserRepositoryEloquent.php │ └── InstituitionRepositoryEloquent.php ├── Validators │ ├── ProductValidator.php │ ├── MovimentValidator.php │ ├── InstituitionValidator.php │ ├── UserValidator.php │ └── GroupValidator.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrimStrings.php │ │ └── RedirectIfAuthenticated.php │ ├── Requests │ │ ├── GroupCreateRequest.php │ │ ├── GroupUpdateRequest.php │ │ ├── UserCreateRequest.php │ │ ├── UserUpdateRequest.php │ │ ├── ProductCreateRequest.php │ │ ├── ProductUpdateRequest.php │ │ ├── MovimentCreateRequest.php │ │ ├── MovimentUpdateRequest.php │ │ ├── InstituitionCreateRequest.php │ │ └── InstituitionUpdateRequest.php │ ├── Controllers │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── RegisterController.php │ │ ├── Controller.php │ │ ├── DashboardController.php │ │ ├── MovimentsController.php │ │ ├── UsersController.php │ │ ├── InstituitionsController.php │ │ ├── GroupsController.php │ │ └── ProductsController.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ ├── RepositoryServiceProvider.php │ └── RouteServiceProvider.php ├── Presenters │ ├── UserPresenter.php │ ├── GroupPresenter.php │ ├── ProductPresenter.php │ ├── MovimentPresenter.php │ └── InstituitionPresenter.php ├── Entities │ ├── Instituition.php │ ├── UserGroup.php │ ├── UserSocial.php │ ├── Product.php │ ├── Moviment.php │ ├── Group.php │ └── User.php ├── Transformers │ ├── UserTransformer.php │ ├── GroupTransformer.php │ ├── ProductTransformer.php │ ├── MovimentTransformer.php │ └── InstituitionTransformer.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php └── Services │ ├── InstituitionService.php │ ├── UserService.php │ └── GroupService.php ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── .env.example ├── server.php ├── package.json ├── config ├── services.php ├── view.php ├── broadcasting.php ├── filesystems.php ├── queue.php ├── cache.php ├── auth.php ├── database.php ├── mail.php └── session.php ├── phpunit.xml ├── composer.json ├── artisan └── readme.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/panel.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/table.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/footer.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/button.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }}: {{ $url }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/header.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion/button.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aquinopro/projeto-curso-laravel-investimento/HEAD/.DS_Store -------------------------------------------------------------------------------- /public/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aquinopro/projeto-curso-laravel-investimento/HEAD/public/.DS_Store -------------------------------------------------------------------------------- /resources/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aquinopro/projeto-curso-laravel-investimento/HEAD/resources/.DS_Store -------------------------------------------------------------------------------- /public/assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aquinopro/projeto-curso-laravel-investimento/HEAD/public/assets/.DS_Store -------------------------------------------------------------------------------- /resources/views/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aquinopro/projeto-curso-laravel-investimento/HEAD/resources/views/.DS_Store -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/table.blade.php: -------------------------------------------------------------------------------- 1 |
| 4 | {{ Illuminate\Mail\Markdown::parse($slot) }} 5 | | 6 |
| 6 | {{ Illuminate\Mail\Markdown::parse($slot) }} 7 | | 8 |
| 7 | {{ Illuminate\Mail\Markdown::parse($slot) }} 8 | | 9 |
4 |
|
12 |
| Produto | 12 |Nome da Instituição | 13 |Valor investido | 14 |15 | |
|---|---|---|---|
| {{ $product->name }} | 21 |{{ $product->instituition->name }} | 22 |{{ $product->valueFromUser(Auth::user()) }} | 23 |
| Data | 12 |Tipo | 13 |Produto | 14 |Grupo | 15 |Valor | 16 |17 | |
|---|---|---|---|---|---|
| {{ $moviment->created_at->format("d/m/Y H:i") }} | 23 |{{ $moviment->type == 1 ? "Aplicação" : "Resgate" }} | 24 |{{ $moviment->product->name }} | 25 |{{ $moviment->group->name }} | 26 |{{ $moviment->value }} | 27 |
4 |
|
18 |
| # | 5 |Nome do Grupo | 6 |Instituição | 7 |Nome do Resposável | 8 |Opções | 9 ||
|---|---|---|---|---|---|
| {{ $group->id }} | 15 |{{ $group->name }} | 16 |R$ {{ number_format($group->total_value, 2, ',', '.') }} | 17 |{{ $group->instituition->name }} | 18 |{{ $group->owner->name }} | 19 |20 | {!! Form::open(['route' => ['group.destroy', $group->id], 'method' => 'DELETE']) !!} 21 | {!! Form::submit('Remover') !!} 22 | {!! Form::close() !!} 23 | Detalhes 24 | Editar 25 | | 26 |
| # | 5 |CPF | 6 |Nome | 7 |Telefone | 8 |Nascimento | 9 |Status | 11 |Permissão | 12 |Menu | 13 ||
| {{ $user->id }} | 19 |{{ $user->formatted_cpf }} | 20 |{{ $user->name }} | 21 |{{ $user->formatted_phone }} | 22 |{{ $user->formatted_birth }} | 23 |{{ $user->email }} | 24 |{{ $user->status }} | 25 |{{ $user->permission }} | 26 |27 | {!! Form::open(['route' => ['user.destroy', $user->id], 'method' => 'DELETE']) !!} 28 | {!! Form::submit('Remover') !!} 29 | {!! Form::close() !!} 30 | Editar 31 | | 32 |
Acesse o sistema
20 | 21 | 24 | 25 | 28 | 29 | {!! Form::submit('Entrar') !!} 30 | 31 | {!! Form::close() !!} 32 || # | 19 |Nome da Instituição | 20 |Opções | 21 |
|---|---|---|
| {{ $inst->id }} | 27 |{{ $inst->name }} | 28 |29 | {!! Form::open(['route' => ['instituition.destroy', $inst->id], 'method' => 'delete']) !!} 30 | {!! Form::submit("Remover") !!} 31 | {!! Form::close() !!} 32 | Detalhes 33 | Editar 34 | Produtos 35 | | 36 |
| # | 15 |Nome | 16 |Descrição | 17 |Indexador | 18 |Taxa | 19 |Opções | 20 | 21 | 22 | @forelse($instituition->products as $product) 23 |
|---|---|---|---|---|---|
| {{ $product->id }} | 25 |{{ $product->name }} | 26 |{{ $product->description }} | 27 |{{ $product->index }} | 28 |{{ $product->interest_rate }} | 29 |30 | {!! Form::open(['route' => ['instituition.product.destroy', $instituition->id, $product->id], 'method' => 'DELETE']) !!} 31 | {!! Form::submit('Remover') !!} 32 | {!! Form::close() !!} 33 | Editar 34 | | 35 |
| Nada cadastrado. | 39 |
29 |
|
51 |