├── public ├── favicon.ico ├── robots.txt ├── vendor │ └── adminlte │ │ ├── css │ │ └── auth.css │ │ ├── plugins │ │ └── iCheck │ │ │ └── square │ │ │ ├── blue.png │ │ │ ├── blue@2x.png │ │ │ └── blue.css │ │ ├── vendor │ │ ├── Ionicons │ │ │ └── fonts │ │ │ │ ├── ionicons.eot │ │ │ │ ├── ionicons.ttf │ │ │ │ └── ionicons.woff │ │ ├── font-awesome │ │ │ └── fonts │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ └── fontawesome-webfont.woff2 │ │ └── bootstrap │ │ │ └── dist │ │ │ └── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── dist │ │ └── css │ │ └── skins │ │ ├── skin-red.min.css │ │ ├── skin-green.min.css │ │ ├── skin-purple.min.css │ │ ├── skin-yellow.min.css │ │ ├── skin-blue.min.css │ │ ├── skin-black.min.css │ │ ├── skin-red-light.min.css │ │ ├── skin-green-light.min.css │ │ ├── skin-purple-light.min.css │ │ ├── skin-yellow-light.min.css │ │ ├── skin-blue-light.min.css │ │ ├── skin-black-light.min.css │ │ ├── skin-red.css │ │ └── skin-green.css ├── resource │ └── site │ │ ├── img │ │ ├── slide-petshop.jpg │ │ ├── delivery-truck.png │ │ ├── graduate-female.png │ │ ├── stamp-document.png │ │ └── customer-service-man.png │ │ ├── js │ │ ├── npm.js │ │ └── script.js │ │ └── css │ │ └── style.css ├── .htaccess ├── web.config └── index.php ├── database ├── .gitignore ├── seeds │ ├── DatabaseSeeder.php │ └── UsersTableSeeder.php ├── factories │ └── UserFactory.php └── migrations │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2018_06_09_105748_create_animals_table.php │ ├── 2018_06_09_105423_create_produtos_table.php │ └── 2018_06_09_105711_create_servicos_table.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── views │ ├── auth │ │ ├── login.blade.php │ │ ├── register.blade.php │ │ └── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ ├── site │ │ ├── filhote.blade.php │ │ ├── compra.blade.php │ │ ├── produtos.blade.php │ │ ├── filhotes.blade.php │ │ ├── servicos.blade.php │ │ ├── loja.blade.php │ │ ├── sobre.blade.php │ │ ├── agendar.blade.php │ │ ├── produto.blade.php │ │ └── servico.blade.php │ ├── includes.blade.php │ ├── vendor │ │ └── adminlte │ │ │ ├── partials │ │ │ ├── menu-item.blade.php │ │ │ └── menu-item-top-nav.blade.php │ │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ │ ├── master.blade.php │ │ │ └── register.blade.php │ ├── admin │ │ ├── animal │ │ │ ├── create.blade.php │ │ │ └── index.blade.php │ │ ├── servico │ │ │ ├── create.blade.php │ │ │ └── index.blade.php │ │ └── produto │ │ │ ├── index.blade.php │ │ │ └── create.blade.php │ ├── welcome.blade.php │ ├── layouts │ │ └── app.blade.php │ └── home.blade.php ├── assets │ ├── sass │ │ ├── _variables.scss │ │ └── app.scss │ └── js │ │ ├── components │ │ └── ExampleComponent.vue │ │ ├── app.js │ │ └── bootstrap.js └── lang │ ├── pt-BR │ ├── pagination.php │ ├── auth.php │ └── passwords.php │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── GitHub-Img ├── dados.png ├── home.png ├── login.png ├── loja.png ├── sobre.png ├── produto.png ├── cadastro.png ├── dasboard.png ├── finalizar.png ├── produtos.png ├── loja-filhotes.png ├── loja-produtos.png └── loja-servicos.png ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── app ├── Models │ └── Admin │ │ ├── Animal │ │ └── Animal.php │ │ ├── Produto │ │ └── Produto.php │ │ └── Servico │ │ └── Servico.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ └── RedirectIfAuthenticated.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── HomeController.php │ │ ├── Admin │ │ │ ├── AdminController.php │ │ │ ├── Animal │ │ │ │ └── AnimalController.php │ │ │ └── Produto │ │ │ │ └── ProdutoController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── RegisterController.php │ │ └── Site │ │ │ └── SiteController.php │ ├── Requests │ │ ├── Site │ │ │ ├── CompraFormRequest.php │ │ │ └── AgendaFormRequest.php │ │ └── Admin │ │ │ ├── Animal │ │ │ └── AnimalFormRequest.php │ │ │ ├── Produto │ │ │ └── ProdutoFormRequest.php │ │ │ └── Servico │ │ │ └── ServicoFormRequest.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── User.php ├── Console │ └── Kernel.php └── Exceptions │ └── Handler.php ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── server.php ├── env ├── package.json ├── config ├── view.php ├── services.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── logging.php ├── queue.php ├── cache.php └── auth.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/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::login') -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::register') -------------------------------------------------------------------------------- /public/vendor/adminlte/css/auth.css: -------------------------------------------------------------------------------- 1 | .auth-links { 2 | margin-top: 10px; 3 | } -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::passwords.email') -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::passwords.reset') -------------------------------------------------------------------------------- /GitHub-Img/dados.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/dados.png -------------------------------------------------------------------------------- /GitHub-Img/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/home.png -------------------------------------------------------------------------------- /GitHub-Img/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/login.png -------------------------------------------------------------------------------- /GitHub-Img/loja.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/loja.png -------------------------------------------------------------------------------- /GitHub-Img/sobre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/sobre.png -------------------------------------------------------------------------------- /GitHub-Img/produto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/produto.png -------------------------------------------------------------------------------- /GitHub-Img/cadastro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/cadastro.png -------------------------------------------------------------------------------- /GitHub-Img/dasboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/dasboard.png -------------------------------------------------------------------------------- /GitHub-Img/finalizar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/finalizar.png -------------------------------------------------------------------------------- /GitHub-Img/produtos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/produtos.png -------------------------------------------------------------------------------- /GitHub-Img/loja-filhotes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/loja-filhotes.png -------------------------------------------------------------------------------- /GitHub-Img/loja-produtos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/loja-produtos.png -------------------------------------------------------------------------------- /GitHub-Img/loja-servicos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/GitHub-Img/loja-servicos.png -------------------------------------------------------------------------------- /public/resource/site/img/slide-petshop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/resource/site/img/slide-petshop.jpg -------------------------------------------------------------------------------- /public/resource/site/img/delivery-truck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/resource/site/img/delivery-truck.png -------------------------------------------------------------------------------- /public/resource/site/img/graduate-female.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/resource/site/img/graduate-female.png -------------------------------------------------------------------------------- /public/resource/site/img/stamp-document.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/resource/site/img/stamp-document.png -------------------------------------------------------------------------------- /public/resource/site/img/customer-service-man.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/resource/site/img/customer-service-man.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/vendor/adminlte/plugins/iCheck/square/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/plugins/iCheck/square/blue.png -------------------------------------------------------------------------------- /public/vendor/adminlte/plugins/iCheck/square/blue@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/plugins/iCheck/square/blue@2x.png -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/Ionicons/fonts/ionicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/Ionicons/fonts/ionicons.eot -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/Ionicons/fonts/ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/Ionicons/fonts/ionicons.ttf -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/Ionicons/fonts/ionicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/Ionicons/fonts/ionicons.woff -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /resources/assets/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f5f8fa; 4 | 5 | // Typography 6 | $font-family-sans-serif: "Raleway", sans-serif; 7 | $font-size-base: 0.9rem; 8 | $line-height-base: 1.6; 9 | -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnatanT/PetShopAdmin/HEAD/public/vendor/adminlte/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /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/scss/bootstrap'; 10 | 11 | .navbar-laravel { 12 | background-color: #fff; 13 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); 14 | } 15 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /database/seeds/UsersTableSeeder.php: -------------------------------------------------------------------------------- 1 | insert([ 15 | 'name' => 'Administrador', 16 | 'email' =>'admin@gmail.com', 17 | 'password' => bcrypt('admin'), 18 | ]); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Http\Response 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | '« Anterior', 16 | 'next' => 'Próxima »', 17 | ]; 18 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /app/User.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 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/assets/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /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/views/site/filhote.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja > Filhotes') 4 | 5 | @section('content') 6 | 7 | @include('includes') 8 |
9 |
10 | image}}" alt="{{$filhote->raca}}" style="max-width: 400px;"> 11 |
12 |
13 |

{{$filhote->raca}}

14 |

{{$filhote->descricao}}.

15 |

VALOR: R$ {{number_format($filhote->preco,2, ',', '.')}}

16 | 17 |
18 |
19 | 20 | @endsection -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.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 | -------------------------------------------------------------------------------- /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 | 24 | 25 | -------------------------------------------------------------------------------- /resources/lang/pt-BR/auth.php: -------------------------------------------------------------------------------- 1 | 'Credenciais informadas não correspondem com nossos registros.', 16 | 'throttle' => 'Você realizou muitas tentativas de login. Por favor, tente novamente em :seconds segundos.', 17 | ]; 18 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.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/Http/Requests/Site/CompraFormRequest.php: -------------------------------------------------------------------------------- 1 | 'required|min:3|max:150', 28 | 'cep' => 'required', 29 | 'cpf' => 'required', 30 | 'email' => 'required|min:3|max:50', 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Requests/Admin/Animal/AnimalFormRequest.php: -------------------------------------------------------------------------------- 1 | 'required|min:3|max:100', 28 | 'preco' => 'required|numeric', 29 | 'descricao' => 'required|min:3', 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Requests/Admin/Produto/ProdutoFormRequest.php: -------------------------------------------------------------------------------- 1 | 'required|min:3|max:100', 28 | 'preco' => 'required|numeric', 29 | 'descricao' => 'required|min:3', 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Requests/Admin/Servico/ServicoFormRequest.php: -------------------------------------------------------------------------------- 1 | 'required|min:3|max:100', 28 | 'preco' => 'required|numeric', 29 | 'descricao' => 'required|min:3', 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /env: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY=base64:IKWzBCoJcz1F+mnguzzz7qcv8Uw62FZSF6YpTf6iMTI= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=pet 13 | DB_USERNAME=root 14 | DB_PASSWORD= 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | SESSION_DRIVER=file 19 | SESSION_LIFETIME=120 20 | QUEUE_DRIVER=sync 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | 33 | PUSHER_APP_ID= 34 | PUSHER_APP_KEY= 35 | PUSHER_APP_SECRET= 36 | PUSHER_APP_CLUSTER=mt1 37 | 38 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 39 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 40 | -------------------------------------------------------------------------------- /resources/views/site/compra.blade.php: -------------------------------------------------------------------------------- 1 | 2 | @extends('site.layout') 3 | 4 | @section('title','Loja > Produtos') 5 | 6 | @section('content') 7 | 8 |
9 |

Compra Processada com Sucesso!

10 | Pet Shop 11 |

Verifique as informações do Pedido:

12 |

Produto: {{$produto->nome}}

13 |

Valor do Produto: R$ {{$produto->preco}}

14 |

Valor do Frete: R$ {{$valor}}

15 |

Prazo de entrega: {{$prazo}} dia(s)

16 |

Descrição: {{$produto->descricao}}

17 | Finalizar Compra 18 |
19 | 20 | @include('includes') 21 | @endsection -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/views/site/produtos.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja > Produtos') 4 | 5 | @section('content') 6 |
7 | @foreach($produtos as $produto) 8 |
9 |
10 | image}}" alt="{{$produto->nome}}"> 11 |
12 |

{{$produto->nome}}

13 |

R$ {{number_format($produto->preco,2, ',', '.')}}

14 |

{{$produto->descricao}}

15 |

Comprar

16 |
17 |
18 |
19 | @endforeach 20 |
21 | @endsection -------------------------------------------------------------------------------- /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/views/site/filhotes.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja > Filhotes') 4 | 5 | @section('content') 6 |
7 | @foreach($animais as $animal) 8 |
9 |
10 | image}}" alt="{{$animal->raca}}"> 11 |
12 |

{{$animal->raca}}

13 |

R$ {{number_format($animal->preco,2, ',', '.')}}

14 |

{{$animal->descricao}}

15 |

Comprar

16 |
17 |
18 |
19 | @endforeach 20 |
21 | @endsection -------------------------------------------------------------------------------- /resources/lang/pt-BR/passwords.php: -------------------------------------------------------------------------------- 1 | 'A senha deve conter pelo menos seis caracteres e ser igual à confirmação.', 16 | 'reset' => 'Sua senha foi redefinida!', 17 | 'sent' => 'Enviamos um link para redefinir a sua senha por e-mail.', 18 | 'token' => 'Esse código de redefinição de senha é inválido.', 19 | 'user' => 'Não conseguimos encontrar nenhum usuário com o endereço de e-mail informado.', 20 | ]; 21 | -------------------------------------------------------------------------------- /resources/views/site/servicos.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja > Serviços') 4 | 5 | @section('content') 6 |
7 | @foreach($servicos as $servico) 8 |
9 |
10 | image}}" alt="{{$servico->nome}}"> 11 |
12 |

{{$servico->nome}}

13 |

R$ {{number_format($servico->preco,2, ',', '.')}}

14 |

{{$servico->descricao}}

15 |

Comprar

16 |
17 |
18 |
19 | @endforeach 20 |
21 | @endsection -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/AdminController.php: -------------------------------------------------------------------------------- 1 | servico = $servico; 21 | $this->animal = $animal; 22 | $this->produto = $produto; 23 | } 24 | 25 | public function index() 26 | { 27 | $animais = $this->animal->count(); 28 | $produtos = $this->produto->count(); 29 | $servicos = $this->servico->count(); 30 | 31 | return view('home',compact('animais','produtos','servicos')); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2018_06_09_105748_create_animals_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('raca'); 19 | $table->text('descricao'); 20 | $table->float('preco'); 21 | $table->integer('status'); 22 | $table->string('image'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('animals'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2018_06_09_105423_create_produtos_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('nome'); 19 | $table->text('descricao'); 20 | $table->float('preco'); 21 | $table->string('image'); 22 | $table->integer('status'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('produtos'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2018_06_09_105711_create_servicos_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('nome'); 19 | $table->text('descricao'); 20 | $table->float('preco'); 21 | $table->integer('status'); 22 | $table->string('image'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('servicos'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Console/Kernel.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/Http/Requests/Site/AgendaFormRequest.php: -------------------------------------------------------------------------------- 1 | 'required|min:3|max:150', 28 | 'cpf' => 'required', 29 | 'email' => 'required|min:3|max:50', 30 | 'animal' => 'required|min:3|max:150', 31 | 'raca' => 'required|min:3|max:150', 32 | 'pelo' => 'required|min:3|max:150', 33 | 'peso' => 'required|numeric', 34 | 'data' => 'required|date' 35 | ]; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /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": "npm run development -- --watch", 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.18", 14 | "bootstrap": "^4.0.0", 15 | "popper.js": "^1.12", 16 | "cross-env": "^5.1", 17 | "jquery": "^3.2", 18 | "laravel-mix": "^2.0", 19 | "lodash": "^4.17.4", 20 | "vue": "^2.5.7" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /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' => env('SES_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 | -------------------------------------------------------------------------------- /resources/views/includes.blade.php: -------------------------------------------------------------------------------- 1 | @if( $errors->any() ) 2 |
3 | @foreach($errors->all() as $error) 4 |

{{$error}}

5 | @endforeach 6 |
7 | @endif 8 | 9 | @if(session('success')) 10 |
{{session('success')}}
11 | @endif 12 | 13 | @if(session('erro')) 14 |
{{session('erro')}}
15 | @endif 16 | 17 | 18 | 19 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/partials/menu-item.blade.php: -------------------------------------------------------------------------------- 1 | @if (is_string($item)) 2 |
  • {{ $item }}
  • 3 | @else 4 |
  • 5 | 8 | 9 | {{ $item['text'] }} 10 | @if (isset($item['label'])) 11 | 12 | {{ $item['label'] }} 13 | 14 | @elseif (isset($item['submenu'])) 15 | 16 | 17 | 18 | @endif 19 | 20 | @if (isset($item['submenu'])) 21 | 24 | @endif 25 |
  • 26 | @endif 27 | -------------------------------------------------------------------------------- /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 | 33 | 34 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | li>.dropdown-menu{ 22 | background-color: #525ce7; 23 | } 24 | .dropdown-menu>li>a{ 25 | text-align: center; 26 | } 27 | 28 | .dropdown-menu>li>a:hover{ 29 | background-color: transparent; 30 | } 31 | 32 | .home-sobre{ 33 | margin: 0 auto; 34 | margin-top: 50px; 35 | margin-bottom: 50px; 36 | text-align: center; 37 | } 38 | 39 | .amostra{ 40 | text-align: center; 41 | margin-bottom: 50px; 42 | } 43 | 44 | .footer{ 45 | background-color: #000; 46 | text-align: center; 47 | color: #fff; 48 | padding: 10px; 49 | margin-right: 0px; 50 | margin-left: 0px; 51 | } 52 | .sobre h2{ 53 | text-align: center; 54 | font-weight: bold; 55 | text-transform: uppercase; 56 | } 57 | .sobre .bloco{ 58 | width: 70%; 59 | margin: 0 auto; 60 | text-align: center; 61 | } 62 | .sobre .bloco img{ 63 | width: 230px; 64 | margin: 0 auto; 65 | } 66 | 67 | .produto{ 68 | margin-bottom: 30px; 69 | margin-top: 40px; 70 | } -------------------------------------------------------------------------------- /resources/views/admin/animal/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::page') 2 | 3 | @section('title', 'PetShop') 4 | 5 | @section('content_header') 6 |

    Gestão de Animais

    7 | @include('includes') 8 | @stop 9 | 10 | @section('content') 11 | @if(isset($animal)) 12 |
    13 | {!! method_field('PUT') !!} 14 | @else 15 | 16 | @endif 17 | {!! csrf_field() !!} 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | @if(isset($animal)) 26 | image}}" alt="{{$animal->nome}}" style="width: 100px;"> 27 | @endif 28 | 29 | 30 |
    31 | @stop 32 | -------------------------------------------------------------------------------- /public/resource/site/js/script.js: -------------------------------------------------------------------------------- 1 | //JQuery-Mask 2 | 3 | $(document).ready(function(){ 4 | $('.date').mask('00/00/0000'); 5 | $('.time').mask('00:00:00'); 6 | $('.date_time').mask('00/00/0000 00:00:00'); 7 | $('.cep').mask('00000-000'); 8 | $('.phone').mask('0000-0000'); 9 | $('.phone_with_ddd').mask('(00) 0000-0000'); 10 | $('.phone_us').mask('(000) 000-0000'); 11 | $('.mixed').mask('AAA 000-S0S'); 12 | $('.cpf').mask('000.000.000-00', {reverse: true}); 13 | $('.cnpj').mask('00.000.000/0000-00', {reverse: true}); 14 | $('.money').mask('000.000.000.000.000,00', {reverse: true}); 15 | $('.money2').mask("#.##0,00", {reverse: true}); 16 | $('.ip_address').mask('0ZZ.0ZZ.0ZZ.0ZZ', { 17 | translation: { 18 | 'Z': { 19 | pattern: /[0-9]/, optional: true 20 | } 21 | } 22 | }); 23 | $('.ip_address').mask('099.099.099.099'); 24 | $('.percent').mask('##0,00%', {reverse: true}); 25 | $('.clear-if-not-match').mask("00/00/0000", {clearIfNotMatch: true}); 26 | $('.placeholder').mask("00/00/0000", {placeholder: "__/__/____"}); 27 | $('.fallback').mask("00r00r0000", { 28 | translation: { 29 | 'r': { 30 | pattern: /[\/]/, 31 | fallback: '/' 32 | }, 33 | placeholder: "__/__/____" 34 | } 35 | }); 36 | $('.selectonfocus').mask("00/00/0000", {selectOnFocus: true}); 37 | }); 38 | 39 | $('#finalizar').click(function (){ 40 | alert('Finalizado com Sucesso!'); 41 | }); -------------------------------------------------------------------------------- /resources/views/admin/servico/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::page') 2 | 3 | @section('title', 'PetShop') 4 | 5 | @section('content_header') 6 |

    Gestão de Serviço

    7 | @include('includes') 8 | @stop 9 | 10 | @section('content') 11 | 12 | @if(isset($servico)) 13 |
    14 | {!! method_field('PUT') !!} 15 | @else 16 | 17 | @endif 18 | 19 | {!! csrf_field() !!} 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | @if(isset($servico)) 28 | image}}" alt="{{$servico->nome}}" style="width: 100px;"> 29 | @endif 30 | 31 | 32 |
    33 | @stop -------------------------------------------------------------------------------- /resources/views/admin/animal/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::page') 2 | 3 | @section('title', 'PetShop') 4 | 5 | @section('content_header') 6 |

    Animais

    7 | Cadastrar 8 | @stop 9 | 10 | @section('content') 11 | @include('includes') 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | @foreach($animais as $animal) 25 | 26 | 27 | 28 | 29 | 30 | 31 | 39 | 40 | @endforeach 41 | 42 |
    IDRaçaPreçoDescriçãoStatusAções
    {{$animal->id}}{{$animal->raca}}R$ {{number_format($animal->preco,2, ',', '.')}}{{$animal->descricao}}{{$animal->status}} 32 | 33 | 34 | 35 | 36 | 37 | 38 |
    43 | 44 | {!! $animais->links() !!} 45 | @stop -------------------------------------------------------------------------------- /resources/views/admin/servico/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::page') 2 | 3 | @section('title', 'PetShop') 4 | 5 | @section('content_header') 6 |

    Serviços

    7 | Cadastrar 8 | @stop 9 | 10 | @section('content') 11 | @include('includes') 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | @foreach($servicos as $servico) 25 | 26 | 27 | 28 | 29 | 30 | 31 | 39 | 40 | @endforeach 41 | 42 |
    IDNomePreçoDescriçãoStatusAções
    {{$servico->id}}{{$servico->nome}}R$ {{number_format($servico->preco,2, ',', '.')}}{{$servico->descricao}}{{$servico->status}} 32 | 33 | 34 | 35 | 36 | 37 | 38 |
    43 | 44 | {!! $servicos->links() !!} 45 | @stop -------------------------------------------------------------------------------- /resources/views/admin/produto/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::page') 2 | 3 | @section('title', 'PetShop') 4 | 5 | @section('content_header') 6 |

    Produtos

    7 | Cadastrar 8 | @stop 9 | 10 | 11 | @section('content') 12 | @include('includes') 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | @foreach($produtos as $produto) 27 | 28 | 29 | 30 | 31 | 32 | 33 | 41 | 42 | @endforeach 43 | 44 |
    IDNomePreçoDescriçãoStatusAções
    {{$produto->id}}{{$produto->nome}}R$ {{number_format($produto->preco,2, ',', '.')}}{{$produto->descricao}}{{$produto->status}} 34 | 35 | 36 | 37 | 38 | 39 | 40 |
    45 | 46 | {!! $produtos->links() !!} 47 | @stop -------------------------------------------------------------------------------- /resources/views/admin/produto/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::page') 2 | 3 | @section('title', 'PetShop') 4 | 5 | @section('content_header') 6 |

    Gestão de Produtos

    7 | @include('includes') 8 | @stop 9 | 10 | @section('content') 11 | 12 | @if(isset($produto)) 13 |
    14 | {!! method_field('PUT') !!} 15 | @else 16 | 17 | @endif 18 | {!! csrf_field() !!} 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | @if(isset($produto)) 27 | image}}" alt="{{$produto->nome}}" style="width: 100px;"> 28 | @endif 29 | 30 | 31 |
    32 | @stop -------------------------------------------------------------------------------- /resources/views/site/loja.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja') 4 | 5 | @section('content') 6 |
    7 |

    Somos de Confiança

    8 |

    Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI, quando um impressor desconhecido pegou uma bandeja de tipos e os embaralhou para fazer um livro de modelos de tipos.

    9 |
    10 | 11 |
    12 |

    Temos de Tudo!

    13 |
    14 |

    Produtos

    15 |

    Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI, quando um impressor desconhecido pegou uma bandeja de tipos e os embaralhou para fazer um livro de modelos de tipos.

    16 |
    17 |
    18 |

    Serviços

    19 |

    Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI, quando um impressor desconhecido pegou uma bandeja de tipos e os embaralhou para fazer um livro de modelos de tipos.

    20 |
    21 |
    22 |

    Filhotes

    23 |

    Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI, quando um impressor desconhecido pegou uma bandeja de tipos e os embaralhou para fazer um livro de modelos de tipos.

    24 |
    25 |
    26 | @endsection -------------------------------------------------------------------------------- /resources/views/site/sobre.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja > S0bre') 4 | 5 | @section('content') 6 | 7 |
    8 |

    Por Que somos diferenciados?

    9 |
    10 |
    11 | Pet Shop 12 |
    13 |
    14 |

    Serviço Customizado

    15 |

    Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI.

    16 |
    17 |
    18 |
    19 |
    20 | Pet Shop 21 |
    22 |
    23 |

    Profissionais Qualificados

    24 |

    Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI.

    25 |
    26 |
    27 |
    28 |
    29 | Pet Shop 30 |
    31 |
    32 |

    Certicações de Qualidade

    33 |

    Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI.

    34 |
    35 |
    36 |
    37 | 38 | @endsection -------------------------------------------------------------------------------- /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 | ]; 53 | -------------------------------------------------------------------------------- /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.1.3", 9 | "escapework/frete": "0.5.*", 10 | "fideloper/proxy": "^4.0", 11 | "jeroennoten/laravel-adminlte": "^1.23", 12 | "laravel/framework": "5.6.*", 13 | "laravel/tinker": "^1.0" 14 | }, 15 | "require-dev": { 16 | "filp/whoops": "^2.0", 17 | "fzaninotto/faker": "^1.4", 18 | "mockery/mockery": "^1.0", 19 | "nunomaduro/collision": "^2.0", 20 | "phpunit/phpunit": "^7.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 | "minimum-stability": "dev", 60 | "prefer-stable": true 61 | } 62 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/views/site/agendar.blade.php: -------------------------------------------------------------------------------- 1 | 2 | @extends('site.layout') 3 | 4 | @section('title','Loja > Agendar') 5 | 6 | @section('content') 7 | 8 |
    9 |

    Agendamento Processado com Sucesso!

    10 | Pet Shop 11 |

    Verifique as informações do Serviço:

    12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
    ClienteEmailCPFRaçaNomeServiçoValorData
    {{$dataForm['nome']}}{{$dataForm['email']}}{{$dataForm['cpf']}}{{$dataForm['raca']}}{{$dataForm['animal']}}{{$servico->nome}}R$ {{number_format($servico->preco,2, ',', '.')}}{{ date( 'd/m/Y' , strtotime($dataForm['data']))}}
    39 | Finalizar 40 |
    41 | 42 | @include('includes') 43 | @endsection -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | 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 | -------------------------------------------------------------------------------- /public/vendor/adminlte/plugins/iCheck/square/blue.css: -------------------------------------------------------------------------------- 1 | /* iCheck plugin Square skin, blue 2 | ----------------------------------- */ 3 | .icheckbox_square-blue, 4 | .iradio_square-blue { 5 | display: inline-block; 6 | *display: inline; 7 | vertical-align: middle; 8 | margin: 0; 9 | padding: 0; 10 | width: 22px; 11 | height: 22px; 12 | background: url(blue.png) no-repeat; 13 | border: none; 14 | cursor: pointer; 15 | } 16 | 17 | .icheckbox_square-blue { 18 | background-position: 0 0; 19 | } 20 | .icheckbox_square-blue.hover { 21 | background-position: -24px 0; 22 | } 23 | .icheckbox_square-blue.checked { 24 | background-position: -48px 0; 25 | } 26 | .icheckbox_square-blue.disabled { 27 | background-position: -72px 0; 28 | cursor: default; 29 | } 30 | .icheckbox_square-blue.checked.disabled { 31 | background-position: -96px 0; 32 | } 33 | 34 | .iradio_square-blue { 35 | background-position: -120px 0; 36 | } 37 | .iradio_square-blue.hover { 38 | background-position: -144px 0; 39 | } 40 | .iradio_square-blue.checked { 41 | background-position: -168px 0; 42 | } 43 | .iradio_square-blue.disabled { 44 | background-position: -192px 0; 45 | cursor: default; 46 | } 47 | .iradio_square-blue.checked.disabled { 48 | background-position: -216px 0; 49 | } 50 | 51 | /* Retina support */ 52 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 53 | only screen and (-moz-min-device-pixel-ratio: 1.5), 54 | only screen and (-o-min-device-pixel-ratio: 3/2), 55 | only screen and (min-device-pixel-ratio: 1.5) { 56 | .icheckbox_square-blue, 57 | .iradio_square-blue { 58 | background-image: url(blue@2x.png); 59 | -webkit-background-size: 240px 24px; 60 | background-size: 240px 24px; 61 | } 62 | } -------------------------------------------------------------------------------- /resources/assets/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | 2 | window._ = require('lodash'); 3 | window.Popper = require('popper.js').default; 4 | 5 | /** 6 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 7 | * for JavaScript based Bootstrap features such as modals and tabs. This 8 | * code may be modified to fit the specific needs of your application. 9 | */ 10 | 11 | try { 12 | window.$ = window.jQuery = require('jquery'); 13 | 14 | require('bootstrap'); 15 | } catch (e) {} 16 | 17 | /** 18 | * We'll load the axios HTTP library which allows us to easily issue requests 19 | * to our Laravel back-end. This library automatically handles sending the 20 | * CSRF token as a header based on the value of the "XSRF" token cookie. 21 | */ 22 | 23 | window.axios = require('axios'); 24 | 25 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 26 | 27 | /** 28 | * Next we will register the CSRF Token as a common header with Axios so that 29 | * all outgoing HTTP requests automatically have it attached. This is just 30 | * a simple convenience so we don't have to attach every token manually. 31 | */ 32 | 33 | let token = document.head.querySelector('meta[name="csrf-token"]'); 34 | 35 | if (token) { 36 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 37 | } else { 38 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 39 | } 40 | 41 | /** 42 | * Echo exposes an expressive API for subscribing to channels and listening 43 | * for events that are broadcast by Laravel. Echo and event broadcasting 44 | * allows your team to easily build robust real-time web applications. 45 | */ 46 | 47 | // import Echo from 'laravel-echo' 48 | 49 | // window.Pusher = require('pusher-js'); 50 | 51 | // window.Echo = new Echo({ 52 | // broadcaster: 'pusher', 53 | // key: process.env.MIX_PUSHER_APP_KEY, 54 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 55 | // encrypted: true 56 | // }); 57 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::master') 2 | 3 | @section('adminlte_css') 4 | 5 | @yield('css') 6 | @stop 7 | 8 | @section('body_class', 'login-page') 9 | 10 | @section('body') 11 |
    12 | 15 | 16 |
    17 | 18 | @if (session('status')) 19 |
    20 | {{ session('status') }} 21 |
    22 | @endif 23 |
    24 | {!! csrf_field() !!} 25 | 26 |
    27 | 29 | 30 | @if ($errors->has('email')) 31 | 32 | {{ $errors->first('email') }} 33 | 34 | @endif 35 |
    36 | 39 |
    40 |
    41 | 42 |
    43 | @stop 44 | 45 | @section('adminlte_js') 46 | @yield('js') 47 | @stop 48 | -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/partials/menu-item-top-nav.blade.php: -------------------------------------------------------------------------------- 1 | @if (is_array($item)) 2 |
  • 3 | 7 | 8 | {{ $item['text'] }} 9 | @if (isset($item['label'])) 10 | {{ $item['label'] }} 11 | @elseif (isset($item['submenu'])) 12 | 13 | @endif 14 | 15 | @if (isset($item['submenu'])) 16 | 37 | @endif 38 |
  • 39 | @endif 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 41 | } 42 | 43 | /** 44 | * Get a validator for an incoming registration request. 45 | * 46 | * @param array $data 47 | * @return \Illuminate\Contracts\Validation\Validator 48 | */ 49 | protected function validator(array $data) 50 | { 51 | return Validator::make($data, [ 52 | 'name' => 'required|string|max:255', 53 | 'email' => 'required|string|email|max:255|unique:users', 54 | 'password' => 'required|string|min:6|confirmed', 55 | ]); 56 | } 57 | 58 | /** 59 | * Create a new user instance after a valid registration. 60 | * 61 | * @param array $data 62 | * @return \App\User 63 | */ 64 | protected function create(array $data) 65 | { 66 | return User::create([ 67 | 'name' => $data['name'], 68 | 'email' => $data['email'], 69 | 'password' => Hash::make($data['password']), 70 | ]); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'public'), 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", "sftp", "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 | 'url' => env('AWS_URL'), 65 | ], 66 | 67 | ], 68 | 69 | ]; 70 | -------------------------------------------------------------------------------- /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 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 58 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 59 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 60 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 61 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 62 | ]; 63 | } 64 | -------------------------------------------------------------------------------- /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 | ]; 82 | -------------------------------------------------------------------------------- /resources/views/site/produto.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja > Produtos') 4 | 5 | @section('content') 6 | 7 |
    8 |
    9 | image}}" alt="{{$produto->nome}}" style="max-width: 400px;"> 10 |
    11 |
    12 |

    {{$produto->nome}}

    13 |

    {{$produto->descricao}}.

    14 |

    VALOR: R$ {{number_format($produto->preco,2, ',', '.')}}

    15 | 16 |
    17 |
    18 | 19 | 20 | 50 | 51 | @include('includes') 52 | @endsection -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-red.min.css: -------------------------------------------------------------------------------- 1 | .skin-red .main-header .navbar{background-color:#dd4b39}.skin-red .main-header .navbar .nav>li>a{color:#fff}.skin-red .main-header .navbar .nav>li>a:hover,.skin-red .main-header .navbar .nav>li>a:active,.skin-red .main-header .navbar .nav>li>a:focus,.skin-red .main-header .navbar .nav .open>a,.skin-red .main-header .navbar .nav .open>a:hover,.skin-red .main-header .navbar .nav .open>a:focus,.skin-red .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-red .main-header .navbar .sidebar-toggle{color:#fff}.skin-red .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-red .main-header .navbar .sidebar-toggle{color:#fff}.skin-red .main-header .navbar .sidebar-toggle:hover{background-color:#d73925}@media (max-width:767px){.skin-red .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-red .main-header .navbar .dropdown-menu li a{color:#fff}.skin-red .main-header .navbar .dropdown-menu li a:hover{background:#d73925}}.skin-red .main-header .logo{background-color:#d73925;color:#fff;border-bottom:0 solid transparent}.skin-red .main-header .logo:hover{background-color:#d33724}.skin-red .main-header li.user-header{background-color:#dd4b39}.skin-red .content-header{background:transparent}.skin-red .wrapper,.skin-red .main-sidebar,.skin-red .left-side{background-color:#222d32}.skin-red .user-panel>.info,.skin-red .user-panel>.info>a{color:#fff}.skin-red .sidebar-menu>li.header{color:#4b646f;background:#1a2226}.skin-red .sidebar-menu>li>a{border-left:3px solid transparent}.skin-red .sidebar-menu>li:hover>a,.skin-red .sidebar-menu>li.active>a,.skin-red .sidebar-menu>li.menu-open>a{color:#fff;background:#1e282c}.skin-red .sidebar-menu>li.active>a{border-left-color:#dd4b39}.skin-red .sidebar-menu>li>.treeview-menu{margin:0 1px;background:#2c3b41}.skin-red .sidebar a{color:#b8c7ce}.skin-red .sidebar a:hover{text-decoration:none}.skin-red .sidebar-menu .treeview-menu>li>a{color:#8aa4af}.skin-red .sidebar-menu .treeview-menu>li.active>a,.skin-red .sidebar-menu .treeview-menu>li>a:hover{color:#fff}.skin-red .sidebar-form{border-radius:3px;border:1px solid #374850;margin:10px 10px}.skin-red .sidebar-form input[type="text"],.skin-red .sidebar-form .btn{box-shadow:none;background-color:#374850;border:1px solid transparent;height:35px}.skin-red .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-red .sidebar-form input[type="text"]:focus,.skin-red .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-red .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-red .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0} -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/master.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @yield('title_prefix', config('adminlte.title_prefix', '')) 7 | @yield('title', config('adminlte.title', 'AdminLTE 2')) 8 | @yield('title_postfix', config('adminlte.title_postfix', '')) 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | @if(config('adminlte.plugins.select2')) 19 | 20 | 21 | @endif 22 | 23 | 24 | 25 | 26 | @if(config('adminlte.plugins.datatables')) 27 | 28 | 29 | @endif 30 | 31 | @yield('adminlte_css') 32 | 33 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | @yield('body') 44 | 45 | 46 | 47 | 48 | 49 | @if(config('adminlte.plugins.select2')) 50 | 51 | 52 | @endif 53 | 54 | @if(config('adminlte.plugins.datatables')) 55 | 56 | 57 | @endif 58 | 59 | @if(config('adminlte.plugins.chartjs')) 60 | 61 | 62 | @endif 63 | 64 | @yield('adminlte_js') 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_DRIVER', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 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 | 'block_for' => null, 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Failed Queue Jobs 73 | |-------------------------------------------------------------------------- 74 | | 75 | | These options configure the behavior of failed queue job logging so you 76 | | can control which database and table are used to store the jobs that 77 | | have failed. You may change them to any database / table you wish. 78 | | 79 | */ 80 | 81 | 'failed' => [ 82 | 'database' => env('DB_CONNECTION', 'mysql'), 83 | 'table' => 'failed_jobs', 84 | ], 85 | 86 | ]; 87 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-green.min.css: -------------------------------------------------------------------------------- 1 | .skin-green .main-header .navbar{background-color:#00a65a}.skin-green .main-header .navbar .nav>li>a{color:#fff}.skin-green .main-header .navbar .nav>li>a:hover,.skin-green .main-header .navbar .nav>li>a:active,.skin-green .main-header .navbar .nav>li>a:focus,.skin-green .main-header .navbar .nav .open>a,.skin-green .main-header .navbar .nav .open>a:hover,.skin-green .main-header .navbar .nav .open>a:focus,.skin-green .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-green .main-header .navbar .sidebar-toggle{color:#fff}.skin-green .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-green .main-header .navbar .sidebar-toggle{color:#fff}.skin-green .main-header .navbar .sidebar-toggle:hover{background-color:#008d4c}@media (max-width:767px){.skin-green .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-green .main-header .navbar .dropdown-menu li a{color:#fff}.skin-green .main-header .navbar .dropdown-menu li a:hover{background:#008d4c}}.skin-green .main-header .logo{background-color:#008d4c;color:#fff;border-bottom:0 solid transparent}.skin-green .main-header .logo:hover{background-color:#008749}.skin-green .main-header li.user-header{background-color:#00a65a}.skin-green .content-header{background:transparent}.skin-green .wrapper,.skin-green .main-sidebar,.skin-green .left-side{background-color:#222d32}.skin-green .user-panel>.info,.skin-green .user-panel>.info>a{color:#fff}.skin-green .sidebar-menu>li.header{color:#4b646f;background:#1a2226}.skin-green .sidebar-menu>li>a{border-left:3px solid transparent}.skin-green .sidebar-menu>li:hover>a,.skin-green .sidebar-menu>li.active>a,.skin-green .sidebar-menu>li.menu-open>a{color:#fff;background:#1e282c}.skin-green .sidebar-menu>li.active>a{border-left-color:#00a65a}.skin-green .sidebar-menu>li>.treeview-menu{margin:0 1px;background:#2c3b41}.skin-green .sidebar a{color:#b8c7ce}.skin-green .sidebar a:hover{text-decoration:none}.skin-green .sidebar-menu .treeview-menu>li>a{color:#8aa4af}.skin-green .sidebar-menu .treeview-menu>li.active>a,.skin-green .sidebar-menu .treeview-menu>li>a:hover{color:#fff}.skin-green .sidebar-form{border-radius:3px;border:1px solid #374850;margin:10px 10px}.skin-green .sidebar-form input[type="text"],.skin-green .sidebar-form .btn{box-shadow:none;background-color:#374850;border:1px solid transparent;height:35px}.skin-green .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-green .sidebar-form input[type="text"]:focus,.skin-green .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-green .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-green .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0} -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-purple.min.css: -------------------------------------------------------------------------------- 1 | .skin-purple .main-header .navbar{background-color:#605ca8}.skin-purple .main-header .navbar .nav>li>a{color:#fff}.skin-purple .main-header .navbar .nav>li>a:hover,.skin-purple .main-header .navbar .nav>li>a:active,.skin-purple .main-header .navbar .nav>li>a:focus,.skin-purple .main-header .navbar .nav .open>a,.skin-purple .main-header .navbar .nav .open>a:hover,.skin-purple .main-header .navbar .nav .open>a:focus,.skin-purple .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-purple .main-header .navbar .sidebar-toggle{color:#fff}.skin-purple .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-purple .main-header .navbar .sidebar-toggle{color:#fff}.skin-purple .main-header .navbar .sidebar-toggle:hover{background-color:#555299}@media (max-width:767px){.skin-purple .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-purple .main-header .navbar .dropdown-menu li a{color:#fff}.skin-purple .main-header .navbar .dropdown-menu li a:hover{background:#555299}}.skin-purple .main-header .logo{background-color:#555299;color:#fff;border-bottom:0 solid transparent}.skin-purple .main-header .logo:hover{background-color:#545096}.skin-purple .main-header li.user-header{background-color:#605ca8}.skin-purple .content-header{background:transparent}.skin-purple .wrapper,.skin-purple .main-sidebar,.skin-purple .left-side{background-color:#222d32}.skin-purple .user-panel>.info,.skin-purple .user-panel>.info>a{color:#fff}.skin-purple .sidebar-menu>li.header{color:#4b646f;background:#1a2226}.skin-purple .sidebar-menu>li>a{border-left:3px solid transparent}.skin-purple .sidebar-menu>li:hover>a,.skin-purple .sidebar-menu>li.active>a,.skin-purple .sidebar-menu>li.menu-open>a{color:#fff;background:#1e282c}.skin-purple .sidebar-menu>li.active>a{border-left-color:#605ca8}.skin-purple .sidebar-menu>li>.treeview-menu{margin:0 1px;background:#2c3b41}.skin-purple .sidebar a{color:#b8c7ce}.skin-purple .sidebar a:hover{text-decoration:none}.skin-purple .sidebar-menu .treeview-menu>li>a{color:#8aa4af}.skin-purple .sidebar-menu .treeview-menu>li.active>a,.skin-purple .sidebar-menu .treeview-menu>li>a:hover{color:#fff}.skin-purple .sidebar-form{border-radius:3px;border:1px solid #374850;margin:10px 10px}.skin-purple .sidebar-form input[type="text"],.skin-purple .sidebar-form .btn{box-shadow:none;background-color:#374850;border:1px solid transparent;height:35px}.skin-purple .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-purple .sidebar-form input[type="text"]:focus,.skin-purple .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-purple .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-purple .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0} -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-yellow.min.css: -------------------------------------------------------------------------------- 1 | .skin-yellow .main-header .navbar{background-color:#f39c12}.skin-yellow .main-header .navbar .nav>li>a{color:#fff}.skin-yellow .main-header .navbar .nav>li>a:hover,.skin-yellow .main-header .navbar .nav>li>a:active,.skin-yellow .main-header .navbar .nav>li>a:focus,.skin-yellow .main-header .navbar .nav .open>a,.skin-yellow .main-header .navbar .nav .open>a:hover,.skin-yellow .main-header .navbar .nav .open>a:focus,.skin-yellow .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-yellow .main-header .navbar .sidebar-toggle{color:#fff}.skin-yellow .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-yellow .main-header .navbar .sidebar-toggle{color:#fff}.skin-yellow .main-header .navbar .sidebar-toggle:hover{background-color:#e08e0b}@media (max-width:767px){.skin-yellow .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-yellow .main-header .navbar .dropdown-menu li a{color:#fff}.skin-yellow .main-header .navbar .dropdown-menu li a:hover{background:#e08e0b}}.skin-yellow .main-header .logo{background-color:#e08e0b;color:#fff;border-bottom:0 solid transparent}.skin-yellow .main-header .logo:hover{background-color:#db8b0b}.skin-yellow .main-header li.user-header{background-color:#f39c12}.skin-yellow .content-header{background:transparent}.skin-yellow .wrapper,.skin-yellow .main-sidebar,.skin-yellow .left-side{background-color:#222d32}.skin-yellow .user-panel>.info,.skin-yellow .user-panel>.info>a{color:#fff}.skin-yellow .sidebar-menu>li.header{color:#4b646f;background:#1a2226}.skin-yellow .sidebar-menu>li>a{border-left:3px solid transparent}.skin-yellow .sidebar-menu>li:hover>a,.skin-yellow .sidebar-menu>li.active>a,.skin-yellow .sidebar-menu>li.menu-open>a{color:#fff;background:#1e282c}.skin-yellow .sidebar-menu>li.active>a{border-left-color:#f39c12}.skin-yellow .sidebar-menu>li>.treeview-menu{margin:0 1px;background:#2c3b41}.skin-yellow .sidebar a{color:#b8c7ce}.skin-yellow .sidebar a:hover{text-decoration:none}.skin-yellow .sidebar-menu .treeview-menu>li>a{color:#8aa4af}.skin-yellow .sidebar-menu .treeview-menu>li.active>a,.skin-yellow .sidebar-menu .treeview-menu>li>a:hover{color:#fff}.skin-yellow .sidebar-form{border-radius:3px;border:1px solid #374850;margin:10px 10px}.skin-yellow .sidebar-form input[type="text"],.skin-yellow .sidebar-form .btn{box-shadow:none;background-color:#374850;border:1px solid transparent;height:35px}.skin-yellow .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-yellow .sidebar-form input[type="text"]:focus,.skin-yellow .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-yellow .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-yellow .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-blue.min.css: -------------------------------------------------------------------------------- 1 | .skin-blue .main-header .navbar{background-color:#3c8dbc}.skin-blue .main-header .navbar .nav>li>a{color:#fff}.skin-blue .main-header .navbar .nav>li>a:hover,.skin-blue .main-header .navbar .nav>li>a:active,.skin-blue .main-header .navbar .nav>li>a:focus,.skin-blue .main-header .navbar .nav .open>a,.skin-blue .main-header .navbar .nav .open>a:hover,.skin-blue .main-header .navbar .nav .open>a:focus,.skin-blue .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-blue .main-header .navbar .sidebar-toggle{color:#fff}.skin-blue .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-blue .main-header .navbar .sidebar-toggle{color:#fff}.skin-blue .main-header .navbar .sidebar-toggle:hover{background-color:#367fa9}@media (max-width:767px){.skin-blue .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-blue .main-header .navbar .dropdown-menu li a{color:#fff}.skin-blue .main-header .navbar .dropdown-menu li a:hover{background:#367fa9}}.skin-blue .main-header .logo{background-color:#367fa9;color:#fff;border-bottom:0 solid transparent}.skin-blue .main-header .logo:hover{background-color:#357ca5}.skin-blue .main-header li.user-header{background-color:#3c8dbc}.skin-blue .content-header{background:transparent}.skin-blue .wrapper,.skin-blue .main-sidebar,.skin-blue .left-side{background-color:#222d32}.skin-blue .user-panel>.info,.skin-blue .user-panel>.info>a{color:#fff}.skin-blue .sidebar-menu>li.header{color:#4b646f;background:#1a2226}.skin-blue .sidebar-menu>li>a{border-left:3px solid transparent}.skin-blue .sidebar-menu>li:hover>a,.skin-blue .sidebar-menu>li.active>a,.skin-blue .sidebar-menu>li.menu-open>a{color:#fff;background:#1e282c}.skin-blue .sidebar-menu>li.active>a{border-left-color:#3c8dbc}.skin-blue .sidebar-menu>li>.treeview-menu{margin:0 1px;background:#2c3b41}.skin-blue .sidebar a{color:#b8c7ce}.skin-blue .sidebar a:hover{text-decoration:none}.skin-blue .sidebar-menu .treeview-menu>li>a{color:#8aa4af}.skin-blue .sidebar-menu .treeview-menu>li.active>a,.skin-blue .sidebar-menu .treeview-menu>li>a:hover{color:#fff}.skin-blue .sidebar-form{border-radius:3px;border:1px solid #374850;margin:10px 10px}.skin-blue .sidebar-form input[type="text"],.skin-blue .sidebar-form .btn{box-shadow:none;background-color:#374850;border:1px solid transparent;height:35px}.skin-blue .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-blue .sidebar-form input[type="text"]:focus,.skin-blue .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-blue .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-blue .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.skin-blue.layout-top-nav .main-header>.logo{background-color:#3c8dbc;color:#fff;border-bottom:0 solid transparent}.skin-blue.layout-top-nav .main-header>.logo:hover{background-color:#3b8ab8} -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Laravel 9 | 10 | 11 | 12 | 13 | 14 | 73 | 74 | 75 |
    76 | @if (Route::has('login')) 77 | 87 | @endif 88 | 89 |
    90 |
    91 | PetShop 92 |
    93 |

    A loja do seu Pet!

    94 | Ve Loja 95 |
    96 | 97 |
    98 | 99 | 100 | -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::master') 2 | 3 | @section('adminlte_css') 4 | 5 | @yield('css') 6 | @stop 7 | 8 | @section('body_class', 'login-page') 9 | 10 | @section('body') 11 |
    12 | 15 | 16 |
    17 | 18 |
    19 | {!! csrf_field() !!} 20 | 21 | 22 | 23 |
    24 | 26 | 27 | @if ($errors->has('email')) 28 | 29 | {{ $errors->first('email') }} 30 | 31 | @endif 32 |
    33 |
    34 | 36 | 37 | @if ($errors->has('password')) 38 | 39 | {{ $errors->first('password') }} 40 | 41 | @endif 42 |
    43 |
    44 | 46 | 47 | @if ($errors->has('password_confirmation')) 48 | 49 | {{ $errors->first('password_confirmation') }} 50 | 51 | @endif 52 |
    53 | 56 |
    57 |
    58 | 59 |
    60 | @stop 61 | 62 | @section('adminlte_js') 63 | @yield('js') 64 | @stop 65 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | 'Site'],function (){ 17 | Route::get('/','SiteController@index')->name('inicio'); 18 | Route::get('loja','SiteController@loja')->name('loja'); 19 | Route::get('loja/produtos','SiteController@produtos')->name('loja-produtos'); 20 | Route::get('loja/produtos/{id}','SiteController@produto')->name('loja-produto'); 21 | Route::post('loja/produtos/compra','SiteController@compra')->name('produto-compra'); 22 | Route::get('loja/servicos','SiteController@servicos')->name('loja-servicos'); 23 | Route::get('loja/servicos/{id}','SiteController@servico')->name('loja-servico'); 24 | Route::post('loja/servicos/agendar','SiteController@agendar')->name('agendar'); 25 | Route::get('loja/filhotes','SiteController@filhotes')->name('loja-filhotes'); 26 | Route::get('loja/filhotes/{id}','SiteController@filhote')->name('loja-filhote'); 27 | Route::get('loja/sobre','SiteController@sobre')->name('loja-sobre'); 28 | }); 29 | 30 | 31 | 32 | Auth::routes(); 33 | 34 | //Rotas do Painel de Administraçaõ 35 | 36 | Route::get('/home', 'HomeController@index')->name('home'); 37 | 38 | Route::group(['prefix' => 'admin','middleware' => 'auth', 'namespace' => 'Admin'],function (){ 39 | Route::get('produto/cadastro','Produto\ProdutoController@create')->name('produto-cad'); 40 | Route::put('produto/update/{id}','Produto\ProdutoController@update')->name('produto-update'); 41 | Route::get('produto/{id}/edit','Produto\ProdutoController@edit')->name('produto-edit'); 42 | Route::get('produto/{id}/delete','Produto\ProdutoController@delete')->name('produto-delete'); 43 | Route::get('produto','Produto\ProdutoController@index')->name('produto'); 44 | Route::post('produto/store','Produto\ProdutoController@store')->name('produto-store'); 45 | Route::get('servico/cadastro','Servico\ServicoController@create')->name('servico-cad'); 46 | Route::get('servico','Servico\ServicoController@index')->name('servico'); 47 | Route::post('servico/store','Servico\ServicoController@store')->name('servico-store'); 48 | Route::put('servico/update/{id}','Servico\ServicoController@update')->name('servico-update'); 49 | Route::get('servico/{id}/edit','Servico\ServicoController@edit')->name('servico-edit'); 50 | Route::get('servico/{id}/delete','Servico\ServicoController@delete')->name('servico-delete'); 51 | Route::get('animal','Animal\AnimalController@index')->name('animal'); 52 | Route::get('animal/cadastro','Animal\AnimalController@create')->name('animal-create'); 53 | Route::post('animal/store','Animal\AnimalController@store')->name('animal-store'); 54 | Route::put('animal/update/{id}','Animal\AnimalController@update')->name('animal-update'); 55 | Route::get('animal/{id}/edit','Animal\AnimalController@edit')->name('animal-edit'); 56 | Route::get('animal/{id}/delete','Animal\AnimalController@delete')->name('animal-delete'); 57 | Route::get('/','AdminController@index')->name('admin'); 58 | }); 59 | 60 | 61 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-black.min.css: -------------------------------------------------------------------------------- 1 | .skin-black .main-header{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.skin-black .main-header .navbar-toggle{color:#333}.skin-black .main-header .navbar-brand{color:#333;border-right:1px solid #eee}.skin-black .main-header .navbar{background-color:#fff}.skin-black .main-header .navbar .nav>li>a{color:#333}.skin-black .main-header .navbar .nav>li>a:hover,.skin-black .main-header .navbar .nav>li>a:active,.skin-black .main-header .navbar .nav>li>a:focus,.skin-black .main-header .navbar .nav .open>a,.skin-black .main-header .navbar .nav .open>a:hover,.skin-black .main-header .navbar .nav .open>a:focus,.skin-black .main-header .navbar .nav>.active>a{background:#fff;color:#999}.skin-black .main-header .navbar .sidebar-toggle{color:#333}.skin-black .main-header .navbar .sidebar-toggle:hover{color:#999;background:#fff}.skin-black .main-header .navbar>.sidebar-toggle{color:#333;border-right:1px solid #eee}.skin-black .main-header .navbar .navbar-nav>li>a{border-right:1px solid #eee}.skin-black .main-header .navbar .navbar-custom-menu .navbar-nav>li>a,.skin-black .main-header .navbar .navbar-right>li>a{border-left:1px solid #eee;border-right-width:0}.skin-black .main-header>.logo{background-color:#fff;color:#333;border-bottom:0 solid transparent;border-right:1px solid #eee}.skin-black .main-header>.logo:hover{background-color:#fcfcfc}@media (max-width:767px){.skin-black .main-header>.logo{background-color:#222;color:#fff;border-bottom:0 solid transparent;border-right:none}.skin-black .main-header>.logo:hover{background-color:#1f1f1f}}.skin-black .main-header li.user-header{background-color:#222}.skin-black .content-header{background:transparent;box-shadow:none}.skin-black .wrapper,.skin-black .main-sidebar,.skin-black .left-side{background-color:#222d32}.skin-black .user-panel>.info,.skin-black .user-panel>.info>a{color:#fff}.skin-black .sidebar-menu>li.header{color:#4b646f;background:#1a2226}.skin-black .sidebar-menu>li>a{border-left:3px solid transparent}.skin-black .sidebar-menu>li:hover>a,.skin-black .sidebar-menu>li.active>a,.skin-black .sidebar-menu>li.menu-open>a{color:#fff;background:#1e282c}.skin-black .sidebar-menu>li.active>a{border-left-color:#fff}.skin-black .sidebar-menu>li>.treeview-menu{margin:0 1px;background:#2c3b41}.skin-black .sidebar a{color:#b8c7ce}.skin-black .sidebar a:hover{text-decoration:none}.skin-black .sidebar-menu .treeview-menu>li>a{color:#8aa4af}.skin-black .sidebar-menu .treeview-menu>li.active>a,.skin-black .sidebar-menu .treeview-menu>li>a:hover{color:#fff}.skin-black .sidebar-form{border-radius:3px;border:1px solid #374850;margin:10px 10px}.skin-black .sidebar-form input[type="text"],.skin-black .sidebar-form .btn{box-shadow:none;background-color:#374850;border:1px solid transparent;height:35px}.skin-black .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-black .sidebar-form input[type="text"]:focus,.skin-black .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-black .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-black .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.skin-black .pace .pace-progress{background:#222}.skin-black .pace .pace-activity{border-top-color:#222;border-left-color:#222} -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-red-light.min.css: -------------------------------------------------------------------------------- 1 | .skin-red-light .main-header .navbar{background-color:#dd4b39}.skin-red-light .main-header .navbar .nav>li>a{color:#fff}.skin-red-light .main-header .navbar .nav>li>a:hover,.skin-red-light .main-header .navbar .nav>li>a:active,.skin-red-light .main-header .navbar .nav>li>a:focus,.skin-red-light .main-header .navbar .nav .open>a,.skin-red-light .main-header .navbar .nav .open>a:hover,.skin-red-light .main-header .navbar .nav .open>a:focus,.skin-red-light .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-red-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-red-light .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-red-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-red-light .main-header .navbar .sidebar-toggle:hover{background-color:#d73925}@media (max-width:767px){.skin-red-light .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-red-light .main-header .navbar .dropdown-menu li a{color:#fff}.skin-red-light .main-header .navbar .dropdown-menu li a:hover{background:#d73925}}.skin-red-light .main-header .logo{background-color:#dd4b39;color:#fff;border-bottom:0 solid transparent}.skin-red-light .main-header .logo:hover{background-color:#dc4735}.skin-red-light .main-header li.user-header{background-color:#dd4b39}.skin-red-light .content-header{background:transparent}.skin-red-light .wrapper,.skin-red-light .main-sidebar,.skin-red-light .left-side{background-color:#f9fafc}.skin-red-light .main-sidebar{border-right:1px solid #d2d6de}.skin-red-light .user-panel>.info,.skin-red-light .user-panel>.info>a{color:#444}.skin-red-light .sidebar-menu>li{-webkit-transition:border-left-color .3s ease;-o-transition:border-left-color .3s ease;transition:border-left-color .3s ease}.skin-red-light .sidebar-menu>li.header{color:#848484;background:#f9fafc}.skin-red-light .sidebar-menu>li>a{border-left:3px solid transparent;font-weight:600}.skin-red-light .sidebar-menu>li:hover>a,.skin-red-light .sidebar-menu>li.active>a{color:#000;background:#f4f4f5}.skin-red-light .sidebar-menu>li.active{border-left-color:#dd4b39}.skin-red-light .sidebar-menu>li.active>a{font-weight:600}.skin-red-light .sidebar-menu>li>.treeview-menu{background:#f4f4f5}.skin-red-light .sidebar a{color:#444}.skin-red-light .sidebar a:hover{text-decoration:none}.skin-red-light .sidebar-menu .treeview-menu>li>a{color:#777}.skin-red-light .sidebar-menu .treeview-menu>li.active>a,.skin-red-light .sidebar-menu .treeview-menu>li>a:hover{color:#000}.skin-red-light .sidebar-menu .treeview-menu>li.active>a{font-weight:600}.skin-red-light .sidebar-form{border-radius:3px;border:1px solid #d2d6de;margin:10px 10px}.skin-red-light .sidebar-form input[type="text"],.skin-red-light .sidebar-form .btn{box-shadow:none;background-color:#fff;border:1px solid transparent;height:35px}.skin-red-light .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-red-light .sidebar-form input[type="text"]:focus,.skin-red-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-red-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-red-light .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}@media (min-width:768px){.skin-red-light.sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu{border-left:1px solid #d2d6de}} -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-green-light.min.css: -------------------------------------------------------------------------------- 1 | .skin-green-light .main-header .navbar{background-color:#00a65a}.skin-green-light .main-header .navbar .nav>li>a{color:#fff}.skin-green-light .main-header .navbar .nav>li>a:hover,.skin-green-light .main-header .navbar .nav>li>a:active,.skin-green-light .main-header .navbar .nav>li>a:focus,.skin-green-light .main-header .navbar .nav .open>a,.skin-green-light .main-header .navbar .nav .open>a:hover,.skin-green-light .main-header .navbar .nav .open>a:focus,.skin-green-light .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-green-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-green-light .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-green-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-green-light .main-header .navbar .sidebar-toggle:hover{background-color:#008d4c}@media (max-width:767px){.skin-green-light .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-green-light .main-header .navbar .dropdown-menu li a{color:#fff}.skin-green-light .main-header .navbar .dropdown-menu li a:hover{background:#008d4c}}.skin-green-light .main-header .logo{background-color:#00a65a;color:#fff;border-bottom:0 solid transparent}.skin-green-light .main-header .logo:hover{background-color:#00a157}.skin-green-light .main-header li.user-header{background-color:#00a65a}.skin-green-light .content-header{background:transparent}.skin-green-light .wrapper,.skin-green-light .main-sidebar,.skin-green-light .left-side{background-color:#f9fafc}.skin-green-light .main-sidebar{border-right:1px solid #d2d6de}.skin-green-light .user-panel>.info,.skin-green-light .user-panel>.info>a{color:#444}.skin-green-light .sidebar-menu>li{-webkit-transition:border-left-color .3s ease;-o-transition:border-left-color .3s ease;transition:border-left-color .3s ease}.skin-green-light .sidebar-menu>li.header{color:#848484;background:#f9fafc}.skin-green-light .sidebar-menu>li>a{border-left:3px solid transparent;font-weight:600}.skin-green-light .sidebar-menu>li:hover>a,.skin-green-light .sidebar-menu>li.active>a{color:#000;background:#f4f4f5}.skin-green-light .sidebar-menu>li.active{border-left-color:#00a65a}.skin-green-light .sidebar-menu>li.active>a{font-weight:600}.skin-green-light .sidebar-menu>li>.treeview-menu{background:#f4f4f5}.skin-green-light .sidebar a{color:#444}.skin-green-light .sidebar a:hover{text-decoration:none}.skin-green-light .sidebar-menu .treeview-menu>li>a{color:#777}.skin-green-light .sidebar-menu .treeview-menu>li.active>a,.skin-green-light .sidebar-menu .treeview-menu>li>a:hover{color:#000}.skin-green-light .sidebar-menu .treeview-menu>li.active>a{font-weight:600}.skin-green-light .sidebar-form{border-radius:3px;border:1px solid #d2d6de;margin:10px 10px}.skin-green-light .sidebar-form input[type="text"],.skin-green-light .sidebar-form .btn{box-shadow:none;background-color:#fff;border:1px solid transparent;height:35px}.skin-green-light .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-green-light .sidebar-form input[type="text"]:focus,.skin-green-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-green-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-green-light .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}@media (min-width:768px){.skin-green-light.sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu{border-left:1px solid #d2d6de}} -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## PetShopAdmin 2 | 3 | Uma aplicação simulando um de um PetShop onde se realiza venda de produtos, filhotes e serviços. 4 | 5 | ## Componentes 6 | 7 | ### Laravel 5.6 8 | - Site do Laravel : **[Laravel](https://laravel.com/)** 9 | 10 | ### AdminLTE 11 | - GitHub : **[AdminLTE](https://github.com/jeroennoten/Laravel-AdminLTE)** 12 | 13 | ### Composer 14 | - Site do Composer : **[composer](https://getcomposer.org/)** 15 | 16 | ### Bootstrap 3.3.7 17 | - Site do Bootstrap : **[Bootstrap](https://getbootstrap.com/docs/3.3/getting-started/)** 18 | 19 | ### JQuery Mask 20 | - GitHub : **[Mask](https://github.com/igorescobar/jQuery-Mask-Plugin)** 21 | 22 | ### API Correios 23 | - GitHub : **[API](https://github.com/EscapeWork/Frete)** 24 | 25 | 26 | ## PetShop Admin 27 | 28 | Este é um projeto simples que está longe de ser usado para produção, apenas algo para estudos. Mas caso você goste da base e queria modificar e melhorar para usar, sinta-se livre. Contribuia com o projeto com um fork e mande um pull request com suas melhorias. 29 | 30 | 31 | 32 | ### A Demo 33 | ![Home da Aplicação](GitHub-Img/home.png "Home") 34 | 35 | ![Login da Aplicação](GitHub-Img/login.png "Login") 36 | 37 | ![Painel](GitHub-Img/dasboard.png "Painel") 38 | 39 | ![Listagem dos Itens](GitHub-Img/produtos.png "Lista") 40 | 41 | ![Home do Site](GitHub-Img/loja.png "Home da Loja") 42 | 43 | ![Pagina Sobre](GitHub-Img/sobre.png "Sobre") 44 | 45 | ![Comprar Produtos](GitHub-Img/loja-produtos.png "Loja - Produtos") 46 | 47 | ![Ver Serviços](GitHub-Img/loja-servicos.png "Loja - Serviços") 48 | 49 | ![Ver Filhotes](GitHub-Img/loja-filhotes.png "Loja - Filhotes") 50 | 51 | ![Clicar em um Produto](GitHub-Img/produto.png "Loja - Produto") 52 | 53 | ![Clicar em Comprar](GitHub-Img/dados.png "Loja - Comprando") 54 | 55 | ![Finalizando](GitHub-Img/finalizar.png "Finalizando Pedido") 56 | 57 | 58 | # Instalação 59 | 60 | ## Passo 1 61 | 62 | ### Com Git 63 | Clone o repositório Git 64 | 65 | Com Git SSH 66 | ``` 67 | git clone git@github.com:JohnatanT/PetShopAdmin.git 68 | ``` 69 | 70 | Ou com HTTPS 71 | ``` 72 | git clone https://github.com/JohnatanT/PetShopAdmin.git 73 | ``` 74 | 75 | Entre na pasta do Projeto 76 | ``` 77 | cd PetShopAdmin 78 | ``` 79 | 80 | Atualize as dependências do composer 81 | ``` 82 | composer update 83 | ``` 84 | 85 | ## Passo 2 86 | Renomeie o arquivo `env` para `.env` 87 | 88 | Configure corretamente sua conexão no arquvivo ```.env``` 89 | 90 | Não esqueça de ter criado um Banco de Dados antes para subir as Migrations. 91 | Além disso ter habilidatado a extensão do PDO em seu ```php.ini``` 92 | 93 | ## Passo 3 94 | Suba as ```migrations``` e as ```sedeers``` 95 | 96 | Migrations 97 | ``` 98 | php artisan migrate 99 | ``` 100 | Sedeers 101 | ``` 102 | php artisan db:seed 103 | ``` 104 | 105 | ## Passo 4 106 | 107 | Vamos criar um link simbolico para a pasta de imagens 108 | ``` 109 | php artisan storage:link 110 | ``` 111 | 112 | Agora, vamos iniciar a aplicação 113 | 114 | Use o próprio servidor PHP do Laravel: 115 | 116 | ``` 117 | php artisan serve 118 | ``` 119 | 120 | Agora você pode acessar pelo seu navegador: 121 | 122 | ``` 123 | 17.0.0.1:8000 124 | ``` 125 | 126 | Por padrão as Sedder que você subiu vem apenas com o Login e Senha do Administrador ! 127 | Então você precisará cadastrar os produtos, serviços e filhotes no Painel de Administração para aparecerem na loja. 128 | 129 | **Atenção** : Login ```admin@gmail.com```, senha ```admin``` não compartilhe com ninguém ! 130 | 131 | 132 | Você está pronto para começar. Bons estudos e desenvolvimento !! 133 | 134 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-purple-light.min.css: -------------------------------------------------------------------------------- 1 | .skin-purple-light .main-header .navbar{background-color:#605ca8}.skin-purple-light .main-header .navbar .nav>li>a{color:#fff}.skin-purple-light .main-header .navbar .nav>li>a:hover,.skin-purple-light .main-header .navbar .nav>li>a:active,.skin-purple-light .main-header .navbar .nav>li>a:focus,.skin-purple-light .main-header .navbar .nav .open>a,.skin-purple-light .main-header .navbar .nav .open>a:hover,.skin-purple-light .main-header .navbar .nav .open>a:focus,.skin-purple-light .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-purple-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-purple-light .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-purple-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-purple-light .main-header .navbar .sidebar-toggle:hover{background-color:#555299}@media (max-width:767px){.skin-purple-light .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-purple-light .main-header .navbar .dropdown-menu li a{color:#fff}.skin-purple-light .main-header .navbar .dropdown-menu li a:hover{background:#555299}}.skin-purple-light .main-header .logo{background-color:#605ca8;color:#fff;border-bottom:0 solid transparent}.skin-purple-light .main-header .logo:hover{background-color:#5d59a6}.skin-purple-light .main-header li.user-header{background-color:#605ca8}.skin-purple-light .content-header{background:transparent}.skin-purple-light .wrapper,.skin-purple-light .main-sidebar,.skin-purple-light .left-side{background-color:#f9fafc}.skin-purple-light .main-sidebar{border-right:1px solid #d2d6de}.skin-purple-light .user-panel>.info,.skin-purple-light .user-panel>.info>a{color:#444}.skin-purple-light .sidebar-menu>li{-webkit-transition:border-left-color .3s ease;-o-transition:border-left-color .3s ease;transition:border-left-color .3s ease}.skin-purple-light .sidebar-menu>li.header{color:#848484;background:#f9fafc}.skin-purple-light .sidebar-menu>li>a{border-left:3px solid transparent;font-weight:600}.skin-purple-light .sidebar-menu>li:hover>a,.skin-purple-light .sidebar-menu>li.active>a{color:#000;background:#f4f4f5}.skin-purple-light .sidebar-menu>li.active{border-left-color:#605ca8}.skin-purple-light .sidebar-menu>li.active>a{font-weight:600}.skin-purple-light .sidebar-menu>li>.treeview-menu{background:#f4f4f5}.skin-purple-light .sidebar a{color:#444}.skin-purple-light .sidebar a:hover{text-decoration:none}.skin-purple-light .sidebar-menu .treeview-menu>li>a{color:#777}.skin-purple-light .sidebar-menu .treeview-menu>li.active>a,.skin-purple-light .sidebar-menu .treeview-menu>li>a:hover{color:#000}.skin-purple-light .sidebar-menu .treeview-menu>li.active>a{font-weight:600}.skin-purple-light .sidebar-form{border-radius:3px;border:1px solid #d2d6de;margin:10px 10px}.skin-purple-light .sidebar-form input[type="text"],.skin-purple-light .sidebar-form .btn{box-shadow:none;background-color:#fff;border:1px solid transparent;height:35px}.skin-purple-light .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-purple-light .sidebar-form input[type="text"]:focus,.skin-purple-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-purple-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-purple-light .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}@media (min-width:768px){.skin-purple-light.sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu{border-left:1px solid #d2d6de}} -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-yellow-light.min.css: -------------------------------------------------------------------------------- 1 | .skin-yellow-light .main-header .navbar{background-color:#f39c12}.skin-yellow-light .main-header .navbar .nav>li>a{color:#fff}.skin-yellow-light .main-header .navbar .nav>li>a:hover,.skin-yellow-light .main-header .navbar .nav>li>a:active,.skin-yellow-light .main-header .navbar .nav>li>a:focus,.skin-yellow-light .main-header .navbar .nav .open>a,.skin-yellow-light .main-header .navbar .nav .open>a:hover,.skin-yellow-light .main-header .navbar .nav .open>a:focus,.skin-yellow-light .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-yellow-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-yellow-light .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-yellow-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-yellow-light .main-header .navbar .sidebar-toggle:hover{background-color:#e08e0b}@media (max-width:767px){.skin-yellow-light .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-yellow-light .main-header .navbar .dropdown-menu li a{color:#fff}.skin-yellow-light .main-header .navbar .dropdown-menu li a:hover{background:#e08e0b}}.skin-yellow-light .main-header .logo{background-color:#f39c12;color:#fff;border-bottom:0 solid transparent}.skin-yellow-light .main-header .logo:hover{background-color:#f39a0d}.skin-yellow-light .main-header li.user-header{background-color:#f39c12}.skin-yellow-light .content-header{background:transparent}.skin-yellow-light .wrapper,.skin-yellow-light .main-sidebar,.skin-yellow-light .left-side{background-color:#f9fafc}.skin-yellow-light .main-sidebar{border-right:1px solid #d2d6de}.skin-yellow-light .user-panel>.info,.skin-yellow-light .user-panel>.info>a{color:#444}.skin-yellow-light .sidebar-menu>li{-webkit-transition:border-left-color .3s ease;-o-transition:border-left-color .3s ease;transition:border-left-color .3s ease}.skin-yellow-light .sidebar-menu>li.header{color:#848484;background:#f9fafc}.skin-yellow-light .sidebar-menu>li>a{border-left:3px solid transparent;font-weight:600}.skin-yellow-light .sidebar-menu>li:hover>a,.skin-yellow-light .sidebar-menu>li.active>a{color:#000;background:#f4f4f5}.skin-yellow-light .sidebar-menu>li.active{border-left-color:#f39c12}.skin-yellow-light .sidebar-menu>li.active>a{font-weight:600}.skin-yellow-light .sidebar-menu>li>.treeview-menu{background:#f4f4f5}.skin-yellow-light .sidebar a{color:#444}.skin-yellow-light .sidebar a:hover{text-decoration:none}.skin-yellow-light .sidebar-menu .treeview-menu>li>a{color:#777}.skin-yellow-light .sidebar-menu .treeview-menu>li.active>a,.skin-yellow-light .sidebar-menu .treeview-menu>li>a:hover{color:#000}.skin-yellow-light .sidebar-menu .treeview-menu>li.active>a{font-weight:600}.skin-yellow-light .sidebar-form{border-radius:3px;border:1px solid #d2d6de;margin:10px 10px}.skin-yellow-light .sidebar-form input[type="text"],.skin-yellow-light .sidebar-form .btn{box-shadow:none;background-color:#fff;border:1px solid transparent;height:35px}.skin-yellow-light .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-yellow-light .sidebar-form input[type="text"]:focus,.skin-yellow-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-yellow-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-yellow-light .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}@media (min-width:768px){.skin-yellow-light.sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu{border-left:1px solid #d2d6de}} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ config('app.name', 'PetShop') }} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
    25 | 73 | 74 |
    75 | @yield('content') 76 |
    77 |
    78 | 79 | 80 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-blue-light.min.css: -------------------------------------------------------------------------------- 1 | .skin-blue-light .main-header .navbar{background-color:#3c8dbc}.skin-blue-light .main-header .navbar .nav>li>a{color:#fff}.skin-blue-light .main-header .navbar .nav>li>a:hover,.skin-blue-light .main-header .navbar .nav>li>a:active,.skin-blue-light .main-header .navbar .nav>li>a:focus,.skin-blue-light .main-header .navbar .nav .open>a,.skin-blue-light .main-header .navbar .nav .open>a:hover,.skin-blue-light .main-header .navbar .nav .open>a:focus,.skin-blue-light .main-header .navbar .nav>.active>a{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-blue-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-blue-light .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-blue-light .main-header .navbar .sidebar-toggle{color:#fff}.skin-blue-light .main-header .navbar .sidebar-toggle:hover{background-color:#367fa9}@media (max-width:767px){.skin-blue-light .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-blue-light .main-header .navbar .dropdown-menu li a{color:#fff}.skin-blue-light .main-header .navbar .dropdown-menu li a:hover{background:#367fa9}}.skin-blue-light .main-header .logo{background-color:#3c8dbc;color:#fff;border-bottom:0 solid transparent}.skin-blue-light .main-header .logo:hover{background-color:#3b8ab8}.skin-blue-light .main-header li.user-header{background-color:#3c8dbc}.skin-blue-light .content-header{background:transparent}.skin-blue-light .wrapper,.skin-blue-light .main-sidebar,.skin-blue-light .left-side{background-color:#f9fafc}.skin-blue-light .main-sidebar{border-right:1px solid #d2d6de}.skin-blue-light .user-panel>.info,.skin-blue-light .user-panel>.info>a{color:#444}.skin-blue-light .sidebar-menu>li{-webkit-transition:border-left-color .3s ease;-o-transition:border-left-color .3s ease;transition:border-left-color .3s ease}.skin-blue-light .sidebar-menu>li.header{color:#848484;background:#f9fafc}.skin-blue-light .sidebar-menu>li>a{border-left:3px solid transparent;font-weight:600}.skin-blue-light .sidebar-menu>li:hover>a,.skin-blue-light .sidebar-menu>li.active>a{color:#000;background:#f4f4f5}.skin-blue-light .sidebar-menu>li.active{border-left-color:#3c8dbc}.skin-blue-light .sidebar-menu>li.active>a{font-weight:600}.skin-blue-light .sidebar-menu>li>.treeview-menu{background:#f4f4f5}.skin-blue-light .sidebar a{color:#444}.skin-blue-light .sidebar a:hover{text-decoration:none}.skin-blue-light .sidebar-menu .treeview-menu>li>a{color:#777}.skin-blue-light .sidebar-menu .treeview-menu>li.active>a,.skin-blue-light .sidebar-menu .treeview-menu>li>a:hover{color:#000}.skin-blue-light .sidebar-menu .treeview-menu>li.active>a{font-weight:600}.skin-blue-light .sidebar-form{border-radius:3px;border:1px solid #d2d6de;margin:10px 10px}.skin-blue-light .sidebar-form input[type="text"],.skin-blue-light .sidebar-form .btn{box-shadow:none;background-color:#fff;border:1px solid transparent;height:35px}.skin-blue-light .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-blue-light .sidebar-form input[type="text"]:focus,.skin-blue-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-blue-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-blue-light .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}@media (min-width:768px){.skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu{border-left:1px solid #d2d6de}}.skin-blue-light .main-footer{border-top-color:#d2d6de}.skin-blue.layout-top-nav .main-header>.logo{background-color:#3c8dbc;color:#fff;border-bottom:0 solid transparent}.skin-blue.layout-top-nav .main-header>.logo:hover{background-color:#3b8ab8} -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::page') 2 | 3 | @section('title', 'PetShop') 4 | 5 | @section('content_header') 6 |

    Painel de Controle

    7 | @stop 8 | 9 | @section('content') 10 |
    11 |
    12 | 13 |
    14 |
    15 |

    {{$produtos}}

    16 |

    Produtos Cadastrados

    17 |
    18 |
    19 | 20 |
    21 | Mais Inforamções 22 |
    23 |
    24 | 25 |
    26 | 27 |
    28 |
    29 |

    {{$servicos}}

    30 |

    Serviços Cadastrados

    31 |
    32 |
    33 | 34 |
    35 | Mais informações 36 |
    37 |
    38 | 39 |
    40 | 41 |
    42 |
    43 |

    {{$animais}}

    44 |

    Animais Cadastrados

    45 |
    46 |
    47 | 48 |
    49 | Mais informações 50 |
    51 |
    52 | 53 |
    54 | 55 | 56 |
    57 |
    58 |
    59 |
    60 |

    Sobre o Sistema

    61 |
    62 | 63 | 64 | Aviso 65 |
    66 | 67 |
    68 | 69 |
    70 | Bem Vindo ao Painel de Administraçao do seu PetShop, aqui você poderá ver seus produtos, serviços e animais. 71 | Não divida o login e senha com outras pessoa! 72 | Este sistema e o site foram feitos em Laravel 5 e sinta-se livre para usá-lo e modifica-lo. 73 |
    74 | 75 |
    76 | 77 |
    78 |
    79 |
    80 |
    81 |

    Cadastros

    82 |
    83 | 84 | 85 | Aviso 86 |
    87 | 88 |
    89 | 90 |
    91 | Você pode cadastrar novos produtos, serviços e animais. Todos eles serão mostrados no seu site da sua loja. 92 | Use o menu lateral para navegar entre o site, ou acesse Mais Informações. Aproveite todos os recursos e boas vendas. 93 |
    94 | 95 |
    96 | 97 |
    98 |
    99 | 100 | 101 | 102 | 103 | @stop -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-black-light.min.css: -------------------------------------------------------------------------------- 1 | .skin-black-light .main-header{border-bottom:1px solid #d2d6de}.skin-black-light .main-header .navbar-toggle{color:#333}.skin-black-light .main-header .navbar-brand{color:#333;border-right:1px solid #d2d6de}.skin-black-light .main-header .navbar{background-color:#fff}.skin-black-light .main-header .navbar .nav>li>a{color:#333}.skin-black-light .main-header .navbar .nav>li>a:hover,.skin-black-light .main-header .navbar .nav>li>a:active,.skin-black-light .main-header .navbar .nav>li>a:focus,.skin-black-light .main-header .navbar .nav .open>a,.skin-black-light .main-header .navbar .nav .open>a:hover,.skin-black-light .main-header .navbar .nav .open>a:focus,.skin-black-light .main-header .navbar .nav>.active>a{background:#fff;color:#999}.skin-black-light .main-header .navbar .sidebar-toggle{color:#333}.skin-black-light .main-header .navbar .sidebar-toggle:hover{color:#999;background:#fff}.skin-black-light .main-header .navbar>.sidebar-toggle{color:#333;border-right:1px solid #d2d6de}.skin-black-light .main-header .navbar .navbar-nav>li>a{border-right:1px solid #d2d6de}.skin-black-light .main-header .navbar .navbar-custom-menu .navbar-nav>li>a,.skin-black-light .main-header .navbar .navbar-right>li>a{border-left:1px solid #d2d6de;border-right-width:0}.skin-black-light .main-header>.logo{background-color:#fff;color:#333;border-bottom:0 solid transparent;border-right:1px solid #d2d6de}.skin-black-light .main-header>.logo:hover{background-color:#fcfcfc}@media (max-width:767px){.skin-black-light .main-header>.logo{background-color:#222;color:#fff;border-bottom:0 solid transparent;border-right:none}.skin-black-light .main-header>.logo:hover{background-color:#1f1f1f}}.skin-black-light .main-header li.user-header{background-color:#222}.skin-black-light .content-header{background:transparent;box-shadow:none}.skin-black-light .wrapper,.skin-black-light .main-sidebar,.skin-black-light .left-side{background-color:#f9fafc}.skin-black-light .main-sidebar{border-right:1px solid #d2d6de}.skin-black-light .user-panel>.info,.skin-black-light .user-panel>.info>a{color:#444}.skin-black-light .sidebar-menu>li{-webkit-transition:border-left-color .3s ease;-o-transition:border-left-color .3s ease;transition:border-left-color .3s ease}.skin-black-light .sidebar-menu>li.header{color:#848484;background:#f9fafc}.skin-black-light .sidebar-menu>li>a{border-left:3px solid transparent;font-weight:600}.skin-black-light .sidebar-menu>li:hover>a,.skin-black-light .sidebar-menu>li.active>a{color:#000;background:#f4f4f5}.skin-black-light .sidebar-menu>li.active{border-left-color:#fff}.skin-black-light .sidebar-menu>li.active>a{font-weight:600}.skin-black-light .sidebar-menu>li>.treeview-menu{background:#f4f4f5}.skin-black-light .sidebar a{color:#444}.skin-black-light .sidebar a:hover{text-decoration:none}.skin-black-light .sidebar-menu .treeview-menu>li>a{color:#777}.skin-black-light .sidebar-menu .treeview-menu>li.active>a,.skin-black-light .sidebar-menu .treeview-menu>li>a:hover{color:#000}.skin-black-light .sidebar-menu .treeview-menu>li.active>a{font-weight:600}.skin-black-light .sidebar-form{border-radius:3px;border:1px solid #d2d6de;margin:10px 10px}.skin-black-light .sidebar-form input[type="text"],.skin-black-light .sidebar-form .btn{box-shadow:none;background-color:#fff;border:1px solid transparent;height:35px}.skin-black-light .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.skin-black-light .sidebar-form input[type="text"]:focus,.skin-black-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-black-light .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-black-light .sidebar-form .btn{color:#999;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}@media (min-width:768px){.skin-black-light.sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu{border-left:1px solid #d2d6de}} -------------------------------------------------------------------------------- /app/Http/Controllers/Site/SiteController.php: -------------------------------------------------------------------------------- 1 | servico = $servico; 26 | $this->animal = $animal; 27 | $this->produto = $produto; 28 | } 29 | 30 | public function index() 31 | { 32 | return view('welcome'); 33 | } 34 | 35 | public function loja() 36 | { 37 | return view('site.loja'); 38 | } 39 | 40 | public function produtos() 41 | { 42 | $produtos = $this->produto->all(); 43 | return view('site.produtos',compact('produtos')); 44 | } 45 | 46 | public function servicos() 47 | { 48 | $servicos = $this->servico->all(); 49 | return view('site.servicos',compact('servicos')); 50 | } 51 | 52 | public function filhotes() 53 | { 54 | $animais = $this->animal->all(); 55 | return view('site.filhotes',compact('animais')); 56 | } 57 | 58 | public function sobre() 59 | { 60 | return view('site.sobre'); 61 | } 62 | 63 | 64 | public function produto($id) 65 | { 66 | $produto = $this->produto->find($id); 67 | return view('site.produto',compact('produto')); 68 | } 69 | 70 | public function servico($id) 71 | { 72 | $servico = $this->servico->find($id); 73 | return view('site.servico',compact('servico')); 74 | } 75 | 76 | public function filhote($id) 77 | { 78 | $filhote = $this->animal->find($id); 79 | return view('site.filhote',compact('filhote')); 80 | } 81 | 82 | public function compra(CompraFormRequest $request) 83 | { 84 | $produto = $this->produto->find($request->idProd); 85 | $frete = new PrecoPrazo(); 86 | $frete->setCodigoServico(Data::SEDEX) 87 | ->setCepOrigem(60337380) # apenas numeros, sem hifen(-) 88 | ->setCepDestino($request->cep) # apenas numeros, sem hifen(-) 89 | ->setComprimento(30) # obrigatorio 90 | ->setAltura(30) # obrigatorio 91 | ->setLargura(30) # obrigatorio 92 | ->setDiametro(30) # obrigatorio 93 | ->setPeso(0.5); # obrigatorio 94 | 95 | try { 96 | $result = $frete->calculate(); 97 | 98 | $valor = $result['cServico']['Valor']; 99 | $prazo = $result['cServico']['PrazoEntrega']; 100 | 101 | 102 | } 103 | catch (FreteException $e) { 104 | // trate o erro adequadamente (e não escrevendo na tela) 105 | echo $e->getMessage(); 106 | echo $e->getCode(); // este código é o código de erro dos correios 107 | // pode ser usado pra dar mensagens como CEP inválido para o cliente 108 | } 109 | return view('site.compra',compact('valor','prazo','produto')); 110 | } 111 | 112 | public function agendar(AgendaFormRequest $request) 113 | { 114 | $dataForm = $request->all(); 115 | $servico = $this->servico->find($request->idServico); 116 | //dd($dataForm); 117 | return view('site.agendar',compact('servico','dataForm')); 118 | } 119 | 120 | } 121 | -------------------------------------------------------------------------------- /resources/views/site/servico.blade.php: -------------------------------------------------------------------------------- 1 | @extends('site.layout') 2 | 3 | @section('title','Loja > Produtos') 4 | 5 | @section('content') 6 | 7 | @include('includes') 8 |
    9 |
    10 | image}}" alt="{{$servico->nome}}" style="max-width: 400px;"> 11 |
    12 |
    13 |

    {{$servico->nome}}

    14 |

    {{$servico->descricao}}.

    15 |

    VALOR: R$ {{number_format($servico->preco,2, ',', '.')}}

    16 | 17 |
    18 |
    19 | 20 | 21 | 77 | 78 | @endsection -------------------------------------------------------------------------------- /resources/views/vendor/adminlte/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('adminlte::master') 2 | 3 | @section('adminlte_css') 4 | 5 | @yield('css') 6 | @stop 7 | 8 | @section('body_class', 'register-page') 9 | 10 | @section('body') 11 |
    12 | 15 | 16 |
    17 | 18 |
    19 | {!! csrf_field() !!} 20 | 21 |
    22 | 24 | 25 | @if ($errors->has('name')) 26 | 27 | {{ $errors->first('name') }} 28 | 29 | @endif 30 |
    31 |
    32 | 34 | 35 | @if ($errors->has('email')) 36 | 37 | {{ $errors->first('email') }} 38 | 39 | @endif 40 |
    41 |
    42 | 44 | 45 | @if ($errors->has('password')) 46 | 47 | {{ $errors->first('password') }} 48 | 49 | @endif 50 |
    51 |
    52 | 54 | 55 | @if ($errors->has('password_confirmation')) 56 | 57 | {{ $errors->first('password_confirmation') }} 58 | 59 | @endif 60 |
    61 | 64 |
    65 | 69 |
    70 | 71 |
    72 | @stop 73 | 74 | @section('adminlte_js') 75 | @yield('js') 76 | @stop 77 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-red.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Red 3 | * --------- 4 | */ 5 | .skin-red .main-header .navbar { 6 | background-color: #dd4b39; 7 | } 8 | .skin-red .main-header .navbar .nav > li > a { 9 | color: #ffffff; 10 | } 11 | .skin-red .main-header .navbar .nav > li > a:hover, 12 | .skin-red .main-header .navbar .nav > li > a:active, 13 | .skin-red .main-header .navbar .nav > li > a:focus, 14 | .skin-red .main-header .navbar .nav .open > a, 15 | .skin-red .main-header .navbar .nav .open > a:hover, 16 | .skin-red .main-header .navbar .nav .open > a:focus, 17 | .skin-red .main-header .navbar .nav > .active > a { 18 | background: rgba(0, 0, 0, 0.1); 19 | color: #f6f6f6; 20 | } 21 | .skin-red .main-header .navbar .sidebar-toggle { 22 | color: #ffffff; 23 | } 24 | .skin-red .main-header .navbar .sidebar-toggle:hover { 25 | color: #f6f6f6; 26 | background: rgba(0, 0, 0, 0.1); 27 | } 28 | .skin-red .main-header .navbar .sidebar-toggle { 29 | color: #fff; 30 | } 31 | .skin-red .main-header .navbar .sidebar-toggle:hover { 32 | background-color: #d73925; 33 | } 34 | @media (max-width: 767px) { 35 | .skin-red .main-header .navbar .dropdown-menu li.divider { 36 | background-color: rgba(255, 255, 255, 0.1); 37 | } 38 | .skin-red .main-header .navbar .dropdown-menu li a { 39 | color: #fff; 40 | } 41 | .skin-red .main-header .navbar .dropdown-menu li a:hover { 42 | background: #d73925; 43 | } 44 | } 45 | .skin-red .main-header .logo { 46 | background-color: #d73925; 47 | color: #ffffff; 48 | border-bottom: 0 solid transparent; 49 | } 50 | .skin-red .main-header .logo:hover { 51 | background-color: #d33724; 52 | } 53 | .skin-red .main-header li.user-header { 54 | background-color: #dd4b39; 55 | } 56 | .skin-red .content-header { 57 | background: transparent; 58 | } 59 | .skin-red .wrapper, 60 | .skin-red .main-sidebar, 61 | .skin-red .left-side { 62 | background-color: #222d32; 63 | } 64 | .skin-red .user-panel > .info, 65 | .skin-red .user-panel > .info > a { 66 | color: #fff; 67 | } 68 | .skin-red .sidebar-menu > li.header { 69 | color: #4b646f; 70 | background: #1a2226; 71 | } 72 | .skin-red .sidebar-menu > li > a { 73 | border-left: 3px solid transparent; 74 | } 75 | .skin-red .sidebar-menu > li:hover > a, 76 | .skin-red .sidebar-menu > li.active > a, 77 | .skin-red .sidebar-menu > li.menu-open > a { 78 | color: #ffffff; 79 | background: #1e282c; 80 | } 81 | .skin-red .sidebar-menu > li.active > a { 82 | border-left-color: #dd4b39; 83 | } 84 | .skin-red .sidebar-menu > li > .treeview-menu { 85 | margin: 0 1px; 86 | background: #2c3b41; 87 | } 88 | .skin-red .sidebar a { 89 | color: #b8c7ce; 90 | } 91 | .skin-red .sidebar a:hover { 92 | text-decoration: none; 93 | } 94 | .skin-red .sidebar-menu .treeview-menu > li > a { 95 | color: #8aa4af; 96 | } 97 | .skin-red .sidebar-menu .treeview-menu > li.active > a, 98 | .skin-red .sidebar-menu .treeview-menu > li > a:hover { 99 | color: #ffffff; 100 | } 101 | .skin-red .sidebar-form { 102 | border-radius: 3px; 103 | border: 1px solid #374850; 104 | margin: 10px 10px; 105 | } 106 | .skin-red .sidebar-form input[type="text"], 107 | .skin-red .sidebar-form .btn { 108 | box-shadow: none; 109 | background-color: #374850; 110 | border: 1px solid transparent; 111 | height: 35px; 112 | } 113 | .skin-red .sidebar-form input[type="text"] { 114 | color: #666; 115 | border-top-left-radius: 2px; 116 | border-top-right-radius: 0; 117 | border-bottom-right-radius: 0; 118 | border-bottom-left-radius: 2px; 119 | } 120 | .skin-red .sidebar-form input[type="text"]:focus, 121 | .skin-red .sidebar-form input[type="text"]:focus + .input-group-btn .btn { 122 | background-color: #fff; 123 | color: #666; 124 | } 125 | .skin-red .sidebar-form input[type="text"]:focus + .input-group-btn .btn { 126 | border-left-color: #fff; 127 | } 128 | .skin-red .sidebar-form .btn { 129 | color: #999; 130 | border-top-left-radius: 0; 131 | border-top-right-radius: 2px; 132 | border-bottom-right-radius: 2px; 133 | border-bottom-left-radius: 0; 134 | } 135 | -------------------------------------------------------------------------------- /public/vendor/adminlte/dist/css/skins/skin-green.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Green 3 | * ----------- 4 | */ 5 | .skin-green .main-header .navbar { 6 | background-color: #00a65a; 7 | } 8 | .skin-green .main-header .navbar .nav > li > a { 9 | color: #ffffff; 10 | } 11 | .skin-green .main-header .navbar .nav > li > a:hover, 12 | .skin-green .main-header .navbar .nav > li > a:active, 13 | .skin-green .main-header .navbar .nav > li > a:focus, 14 | .skin-green .main-header .navbar .nav .open > a, 15 | .skin-green .main-header .navbar .nav .open > a:hover, 16 | .skin-green .main-header .navbar .nav .open > a:focus, 17 | .skin-green .main-header .navbar .nav > .active > a { 18 | background: rgba(0, 0, 0, 0.1); 19 | color: #f6f6f6; 20 | } 21 | .skin-green .main-header .navbar .sidebar-toggle { 22 | color: #ffffff; 23 | } 24 | .skin-green .main-header .navbar .sidebar-toggle:hover { 25 | color: #f6f6f6; 26 | background: rgba(0, 0, 0, 0.1); 27 | } 28 | .skin-green .main-header .navbar .sidebar-toggle { 29 | color: #fff; 30 | } 31 | .skin-green .main-header .navbar .sidebar-toggle:hover { 32 | background-color: #008d4c; 33 | } 34 | @media (max-width: 767px) { 35 | .skin-green .main-header .navbar .dropdown-menu li.divider { 36 | background-color: rgba(255, 255, 255, 0.1); 37 | } 38 | .skin-green .main-header .navbar .dropdown-menu li a { 39 | color: #fff; 40 | } 41 | .skin-green .main-header .navbar .dropdown-menu li a:hover { 42 | background: #008d4c; 43 | } 44 | } 45 | .skin-green .main-header .logo { 46 | background-color: #008d4c; 47 | color: #ffffff; 48 | border-bottom: 0 solid transparent; 49 | } 50 | .skin-green .main-header .logo:hover { 51 | background-color: #008749; 52 | } 53 | .skin-green .main-header li.user-header { 54 | background-color: #00a65a; 55 | } 56 | .skin-green .content-header { 57 | background: transparent; 58 | } 59 | .skin-green .wrapper, 60 | .skin-green .main-sidebar, 61 | .skin-green .left-side { 62 | background-color: #222d32; 63 | } 64 | .skin-green .user-panel > .info, 65 | .skin-green .user-panel > .info > a { 66 | color: #fff; 67 | } 68 | .skin-green .sidebar-menu > li.header { 69 | color: #4b646f; 70 | background: #1a2226; 71 | } 72 | .skin-green .sidebar-menu > li > a { 73 | border-left: 3px solid transparent; 74 | } 75 | .skin-green .sidebar-menu > li:hover > a, 76 | .skin-green .sidebar-menu > li.active > a, 77 | .skin-green .sidebar-menu > li.menu-open > a { 78 | color: #ffffff; 79 | background: #1e282c; 80 | } 81 | .skin-green .sidebar-menu > li.active > a { 82 | border-left-color: #00a65a; 83 | } 84 | .skin-green .sidebar-menu > li > .treeview-menu { 85 | margin: 0 1px; 86 | background: #2c3b41; 87 | } 88 | .skin-green .sidebar a { 89 | color: #b8c7ce; 90 | } 91 | .skin-green .sidebar a:hover { 92 | text-decoration: none; 93 | } 94 | .skin-green .sidebar-menu .treeview-menu > li > a { 95 | color: #8aa4af; 96 | } 97 | .skin-green .sidebar-menu .treeview-menu > li.active > a, 98 | .skin-green .sidebar-menu .treeview-menu > li > a:hover { 99 | color: #ffffff; 100 | } 101 | .skin-green .sidebar-form { 102 | border-radius: 3px; 103 | border: 1px solid #374850; 104 | margin: 10px 10px; 105 | } 106 | .skin-green .sidebar-form input[type="text"], 107 | .skin-green .sidebar-form .btn { 108 | box-shadow: none; 109 | background-color: #374850; 110 | border: 1px solid transparent; 111 | height: 35px; 112 | } 113 | .skin-green .sidebar-form input[type="text"] { 114 | color: #666; 115 | border-top-left-radius: 2px; 116 | border-top-right-radius: 0; 117 | border-bottom-right-radius: 0; 118 | border-bottom-left-radius: 2px; 119 | } 120 | .skin-green .sidebar-form input[type="text"]:focus, 121 | .skin-green .sidebar-form input[type="text"]:focus + .input-group-btn .btn { 122 | background-color: #fff; 123 | color: #666; 124 | } 125 | .skin-green .sidebar-form input[type="text"]:focus + .input-group-btn .btn { 126 | border-left-color: #fff; 127 | } 128 | .skin-green .sidebar-form .btn { 129 | color: #999; 130 | border-top-left-radius: 0; 131 | border-top-right-radius: 2px; 132 | border-bottom-right-radius: 2px; 133 | border-bottom-left-radius: 0; 134 | } 135 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/Animal/AnimalController.php: -------------------------------------------------------------------------------- 1 | animal = $animal; 18 | } 19 | 20 | public function create() 21 | { 22 | return view('admin.animal.create'); 23 | } 24 | 25 | public function index() 26 | { 27 | $animais = $this->animal->paginate(10); 28 | return view('admin.animal.index',compact('animais')); 29 | } 30 | 31 | //Cadastra de Animal 32 | public function store(AnimalFormRequest $request) 33 | { 34 | $dataForm = $request->all(); //Pegando dados do Formulario 35 | //$dd($request->all()); 36 | $dataForm['raca'] = preg_replace( '/[`^~\'"]/', null, iconv( 'UTF-8', 'ASCII//TRANSLIT', $dataForm['raca'] ) ); 37 | 38 | //Pegando Imagem e Validando 39 | if($request->hasFile('image') && $request->file('image')->isValid()){ 40 | //Criando um nome pra imagem 41 | $name = rand().kebab_case($dataForm['raca']); 42 | 43 | //Pegando sua extensão 44 | $extenstion = $request->image->getClientOriginalExtension(); 45 | 46 | $nameFile = "{$name}.{$extenstion}"; 47 | //Fazendo Upload da imagem no Storage 48 | 49 | $dataForm['image'] = $nameFile; 50 | 51 | $uplod = $request->image->storeAs('animais',$nameFile); 52 | if(!$uplod) 53 | return redirect()->back()->with('erro','Falha ao fazer Upload da Imagem!'); 54 | } 55 | 56 | //Animal ao ser cadastrado recebe o status 1 57 | $dataForm['status'] = 1; 58 | 59 | //Inserindo dados 60 | $insert = $this->animal->create($dataForm); 61 | 62 | //Verificando o retorno da inserção 63 | if($insert) 64 | return redirect()->back()->with('success','Animal Cadastrado com Sucesso!'); 65 | else 66 | return redirect()->back()->with('erro','Falha ao Cadastrar Animal!'); 67 | } 68 | 69 | public function edit($id) 70 | { 71 | //Recupera o produto pelo ID 72 | $animal = $this->animal->find($id); 73 | 74 | return view('admin.animal.create',compact('animal')); 75 | } 76 | 77 | public function update(AnimalFormRequest $request, $id){ 78 | $dataForm = $request->all(); 79 | $animal = $this->animal->find($id); 80 | 81 | //Pegando Imagem e Validando 82 | if($request->hasFile('image') && $request->file('image')->isValid()){ 83 | //Criando um nome pra imagem 84 | $name = rand().kebab_case($dataForm['nome']); 85 | 86 | //Pegando sua extensão 87 | $extenstion = $request->image->getClientOriginalExtension(); 88 | 89 | $nameFile = "{$name}.{$extenstion}"; 90 | //Fazendo Upload da imagem no Storage 91 | 92 | $dataForm['image'] = $nameFile; 93 | 94 | $uplod = $request->image->storeAs('animais',$nameFile); 95 | if(!$uplod) 96 | return redirect()->back()->with('erro','Falha ao fazer Upload da Imagem!'); 97 | } 98 | 99 | $update = $animal->update($dataForm); 100 | 101 | if($update) 102 | return redirect()->back()->with('success','Animal Editado com Sucesso!'); 103 | else 104 | return redirect()->back()->with('erro','Falha no Update do Animal!'); 105 | 106 | 107 | } 108 | 109 | 110 | public function delete($id) 111 | { 112 | $animal = $this->animal->find($id); 113 | $delete = $animal->delete(); 114 | 115 | if($delete) 116 | return redirect()->back()->with('success','Animal Deletado com Sucesso!'); 117 | else 118 | return redirect()->back()->with('erro','Falha na Exclusão do Animal!'); 119 | 120 | } 121 | 122 | } 123 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/Produto/ProdutoController.php: -------------------------------------------------------------------------------- 1 | produto = $produto; 18 | } 19 | 20 | public function create() 21 | { 22 | return view('admin.produto.create'); 23 | } 24 | 25 | public function index() 26 | { 27 | $produtos = $this->produto->paginate(10); 28 | return view('admin.produto.index',compact('produtos')); 29 | } 30 | 31 | //Cadastra o Produto 32 | public function store(ProdutoFormRequest $request) 33 | { 34 | $dataForm = $request->all(); //Pegando dados do Formulario 35 | //$dd($request->all()); 36 | $dataForm['nome'] = preg_replace( '/[`^~\'"]/', null, iconv( 'UTF-8', 'ASCII//TRANSLIT', $dataForm['nome'] ) ); 37 | 38 | //Pegando Imagem e Validando 39 | if($request->hasFile('image') && $request->file('image')->isValid()){ 40 | //Criando um nome pra imagem 41 | $name = rand().kebab_case($dataForm['nome']); 42 | 43 | //Pegando sua extensão 44 | $extenstion = $request->image->getClientOriginalExtension(); 45 | 46 | $nameFile = "{$name}.{$extenstion}"; 47 | //Fazendo Upload da imagem no Storage 48 | 49 | $dataForm['image'] = $nameFile; 50 | 51 | $uplod = $request->image->storeAs('produtos',$nameFile); 52 | if(!$uplod) 53 | return redirect()->back()->with('erro','Falha ao fazer Upload da Imagem!'); 54 | } 55 | 56 | //Produto aom ser cadastrado recebe o status 1 57 | $dataForm['status'] = 1; 58 | 59 | //Inserindo dados 60 | $insert = $this->produto->create($dataForm); 61 | 62 | //Verificando o retorno da inserção 63 | if($insert) 64 | return redirect()->back()->with('success','Produto Cadastrado com Sucesso!'); 65 | else 66 | return redirect()->back()->with('erro','Falha ao Cadastrar Produto!'); 67 | } 68 | 69 | public function edit($id) 70 | { 71 | //Recupera o produto pelo ID 72 | $produto = $this->produto->find($id); 73 | 74 | return view('admin.produto.create',compact('produto')); 75 | } 76 | 77 | public function update(ProdutoFormRequest $request, $id) 78 | { 79 | $dataForm = $request->all(); 80 | $produto = $this->produto->find($id); 81 | 82 | //Pegando Imagem e Validando 83 | if($request->hasFile('image') && $request->file('image')->isValid()){ 84 | //Criando um nome pra imagem 85 | $name = rand().kebab_case($dataForm['nome']); 86 | 87 | //Pegando sua extensão 88 | $extenstion = $request->image->getClientOriginalExtension(); 89 | 90 | $nameFile = "{$name}.{$extenstion}"; 91 | //Fazendo Upload da imagem no Storage 92 | 93 | $dataForm['image'] = $nameFile; 94 | 95 | $uplod = $request->image->storeAs('produtos',$nameFile); 96 | if(!$uplod) 97 | return redirect()->back()->with('erro','Falha ao fazer Upload da Imagem!'); 98 | } 99 | 100 | $update = $produto->update($dataForm); 101 | 102 | if($update) 103 | return redirect()->back()->with('success','Produto Editado com Sucesso!'); 104 | else 105 | return redirect()->back()->with('erro','Falha no Update Produto!'); 106 | 107 | } 108 | 109 | public function delete($id) 110 | { 111 | $produto = $this->produto->find($id); 112 | $delete = $produto->delete(); 113 | 114 | if($delete) 115 | return redirect()->back()->with('success','Produto Deletado com Sucesso!'); 116 | else 117 | return redirect()->back()->with('erro','Falha na Exclusão do Produto!'); 118 | 119 | } 120 | 121 | } 122 | --------------------------------------------------------------------------------