Name
71 |{{$admin->name}}
72 |73 |
├── public ├── favicon.ico ├── robots.txt ├── css │ ├── darkMode.css │ ├── lightmode.css │ ├── emailCard.css │ └── DarkToggleStyle.css ├── assets │ └── gifs │ │ ├── logo.jpg │ │ ├── user.png │ │ ├── admin.png │ │ ├── DarkMode .gif │ │ ├── LightMode.gif │ │ ├── paradrop.png │ │ ├── emailImage.png │ │ └── cancel_order.png ├── docs │ └── images │ │ └── navbar.png ├── .htaccess ├── js │ └── darkmode.js └── index.php ├── resources ├── css │ └── app.css ├── js │ ├── app.js │ └── bootstrap.js ├── views │ ├── dashboard │ │ ├── admin │ │ │ ├── statistics.blade.php │ │ │ └── profile.blade.php │ │ ├── index.blade.php │ │ ├── medicine │ │ │ ├── create.blade.php │ │ │ └── edit.blade.php │ │ ├── area │ │ │ ├── create.blade.php │ │ │ └── edit.blade.php │ │ ├── revenue │ │ │ └── index.blade.php │ │ └── order │ │ │ └── medicinesOrder.blade.php │ ├── vendor │ │ └── scribe │ │ │ ├── components │ │ │ └── badges │ │ │ │ ├── base.blade.php │ │ │ │ ├── auth.blade.php │ │ │ │ └── http-method.blade.php │ │ │ ├── markdown │ │ │ ├── auth.blade.php │ │ │ └── intro.blade.php │ │ │ ├── themes │ │ │ ├── default │ │ │ │ └── groups.blade.php │ │ │ └── elements │ │ │ │ ├── groups.blade.php │ │ │ │ └── components │ │ │ │ └── nested-fields.blade.php │ │ │ └── partials │ │ │ └── example-requests │ │ │ ├── bash.md.blade.php │ │ │ ├── python.md.blade.php │ │ │ ├── php.md.blade.php │ │ │ └── javascript.md.blade.php │ ├── emails │ │ ├── welcome.blade.php │ │ ├── inactiveClient.blade.php │ │ └── confirmOrder.blade.php │ ├── components │ │ └── modal.blade.php │ ├── auth │ │ ├── verify.blade.php │ │ └── passwords │ │ │ └── confirm.blade.php │ ├── welcome.blade.php │ └── confirmOrder │ │ ├── confirmed.blade.php │ │ └── canceledOrder.blade.php └── sass │ ├── _variables.scss │ └── app.scss ├── database ├── .gitignore ├── seeders │ ├── AdminSeeder.php │ ├── DatabaseSeeder.php │ ├── AreaSeeder.php │ ├── MedicineSeeder.php │ └── CountriesSeeder.php ├── migrations │ ├── 2023_03_27_233844_add_is_admin_to_users_table.php │ ├── 2023_03_31_223942_add_soft_delete_to_orders_table.php │ ├── 2023_04_01_131515_drop_avatar_image_column_from_pharmacies_table.php │ ├── 2023_04_01_132459_drop_avatar_image_column_from_clients_table.php │ ├── 2023_04_01_132718_drop_avatar_image_column_from_doctors_table.php │ ├── 2023_03_29_205736_add_nullable_to_userable_column_to_users_table.php │ ├── 2023_03_30_010421_add_soft_delete_to_medicines_table.php │ ├── 2023_04_03_072638_add_priority_to_pharmacies_table.php │ ├── 2023_03_30_001510_add_quantity_to__medicines_table.php │ ├── 2023_04_01_141328_remove_quantity_from_medicines.php │ ├── 2023_04_04_102839_add_country_id_to_areas_table.php │ ├── 2023_03_29_151018_add_usearable_column_to_users_table.php │ ├── 2023_03_28_144906_add_banned_at_column_to_doctors_table.php │ ├── 2023_03_30_103421_add_verified_at_to_clients_table.php │ ├── 2023_04_01_140736_remove_quantity_from_order_medicines.php │ ├── 2023_04_01_141243_add_quantity_to_order_medicines_tableta.php │ ├── 2023_03_29_205625_drop_morphs_from_users_table.php │ ├── 2023_04_01_140832_add_medicine_name_to_order_medicines_table.php │ ├── 2023_04_01_141116_modify_order_medicines_table.php │ ├── 2014_10_12_100000_create_password_reset_tokens_table.php │ ├── 2023_04_02_185343_modify_orders_table.php │ ├── 2023_03_29_234713_create_medicines_table.php │ ├── 2023_03_31_015313_create_order_prescription_table.php │ ├── 2023_03_26_184957_create_areas_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2023_03_31_015709_create_order_medicines_table.php │ ├── 2023_03_31_005432_add_creator_type_to_orders_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2023_03_31_002808_create_orders_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2019_12_14_000001_create_personal_access_tokens_table.php │ ├── 2023_03_26_185023_create_pharmacies_table.php │ ├── 2023_04_01_124824_create_media_table.php │ ├── 2023_03_28_080759_create_doctors_table.php │ ├── 2023_03_29_173324_create_clients_table.php │ ├── 2023_03_29_201635_create_addresses_table.php │ ├── 2017_03_04_000000_create_bans_table.php │ ├── 2023_04_03_153548_setup_countries_table.php │ └── 2023_04_03_153549_charify_countries_table.php └── factories │ └── UserFactory.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── Procfile ├── .scribe ├── auth.md ├── .filehashes ├── intro.md ├── endpoints │ ├── 04.yaml │ └── custom.0.yaml └── endpoints.cache │ └── 04.yaml ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitattributes ├── stubs ├── export.query.stub ├── export.plain.stub ├── import.collection.stub ├── export.model.stub ├── export.query-model.stub └── import.model.stub ├── .gitignore ├── app ├── Models │ ├── Country.php │ ├── OrderPrescription.php │ ├── OrderMedicine.php │ ├── Area.php │ ├── Address.php │ ├── Medicine.php │ ├── Order.php │ ├── Doctor.php │ ├── User.php │ ├── Pharmacy.php │ └── Client.php ├── Http │ ├── Controllers │ │ ├── Controller.php │ │ ├── AdminController.php │ │ ├── HomeController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── VerificationController.php │ │ │ └── RegisterController.php │ │ ├── StripeController.php │ │ ├── OrderConfirmationController.php │ │ ├── RevenueController.php │ │ ├── ClientController.php │ │ └── ChartController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── Authenticate.php │ │ ├── ValidateSignature.php │ │ ├── TrustProxies.php │ │ └── RedirectIfAuthenticated.php │ ├── Resources │ │ ├── MedicineResource.php │ │ ├── ClientResource.php │ │ ├── MedicineOrderResource.php │ │ ├── AddressResource.php │ │ └── OrderResource.php │ └── Requests │ │ ├── UpdateMedicineRequest.php │ │ ├── StoreAreaRequest.php │ │ ├── StoreMedicineRequest.php │ │ ├── UpdateAreaRequest.php │ │ ├── Api │ │ ├── CreateOrderRequest.php │ │ ├── ClientRegisterRequest.php │ │ ├── ClientUpdateProfileRequest.php │ │ └── AddressRegisterRequest.php │ │ ├── StoreDoctorRequest.php │ │ ├── StorePharmacyRequest.php │ │ ├── StoreAddressRequest.php │ │ ├── UpdateAddressRequest.php │ │ ├── UpdateDoctorRequest.php │ │ └── UpdatePharmacyRequest.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── View │ └── Components │ │ └── Modal.php ├── Notifications │ └── ClientVerified.php ├── Console │ ├── Commands │ │ ├── UnbanUserCommand.php │ │ ├── NotifyInactiveClients.php │ │ ├── CreateAdminCommand.php │ │ └── ScanNewOrders.php │ └── Kernel.php ├── Exceptions │ └── Handler.php └── Mail │ ├── ConfirmOrder.php │ ├── InactiveClientMail.php │ └── WelcomeMail.php ├── .editorconfig ├── vite.config.js ├── package.json ├── routes ├── channels.php └── console.php ├── config ├── cors.php ├── services.php ├── view.php ├── hashing.php ├── broadcasting.php └── sanctum.php ├── phpunit.xml ├── .env.example ├── artisan └── composer.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web:vendor/bin/heroku-php-apache2 public/ 2 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /.scribe/auth.md: -------------------------------------------------------------------------------- 1 | # Authenticating requests 2 | 3 | This API is not authenticated. 4 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import "./bootstrap"; 2 | import Chart from "chart.js/auto"; 3 | -------------------------------------------------------------------------------- /public/css/darkMode.css: -------------------------------------------------------------------------------- 1 | 2 | .darkMode .tfoot { 3 | background-color: black !important; 4 | } 5 | -------------------------------------------------------------------------------- /public/assets/gifs/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/assets/gifs/logo.jpg -------------------------------------------------------------------------------- /public/assets/gifs/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/assets/gifs/user.png -------------------------------------------------------------------------------- /public/assets/gifs/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/assets/gifs/admin.png -------------------------------------------------------------------------------- /public/docs/images/navbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/docs/images/navbar.png -------------------------------------------------------------------------------- /public/assets/gifs/DarkMode .gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/assets/gifs/DarkMode .gif -------------------------------------------------------------------------------- /public/assets/gifs/LightMode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/assets/gifs/LightMode.gif -------------------------------------------------------------------------------- /public/assets/gifs/paradrop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/assets/gifs/paradrop.png -------------------------------------------------------------------------------- /resources/views/dashboard/admin/statistics.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('content') 3 | 4 | @endsection -------------------------------------------------------------------------------- /public/assets/gifs/emailImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrugRadar/Pharmacy-Proj/HEAD/public/assets/gifs/emailImage.png -------------------------------------------------------------------------------- /resources/views/dashboard/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('content') 3 |
{!! $baseUrl !!}
7 |
8 |
9 | {!! $introText !!}
10 |
11 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto eol=lf
2 |
3 | *.blade.php diff=html
4 | *.css diff=css
5 | *.html diff=html
6 | *.md diff=markdown
7 | *.php diff=php
8 |
9 | /.github export-ignore
10 | CHANGELOG.md export-ignore
11 | .styleci.yml export-ignore
12 |
--------------------------------------------------------------------------------
/.scribe/.filehashes:
--------------------------------------------------------------------------------
1 | # GENERATED. YOU SHOULDN'T MODIFY OR DELETE THIS FILE.
2 | # Scribe uses this file to know when you change something manually in your docs.
3 | .scribe/intro.md=108c50a021adf031b859f304eba64ddd
4 | .scribe/auth.md=9bee2b1ef8a238b2e58613fa636d5f39
--------------------------------------------------------------------------------
/resources/views/vendor/scribe/components/badges/http-method.blade.php:
--------------------------------------------------------------------------------
1 | @component('scribe::components.badges.base', [
2 | 'colour' => \Knuckles\Scribe\Tools\WritingUtils::$httpMethodToCssColour[$method],
3 | 'text' => $method,
4 | ])
5 | @endcomponent
6 |
--------------------------------------------------------------------------------
/resources/views/emails/welcome.blade.php:
--------------------------------------------------------------------------------
1 | }})
12 | {!! Parsedown::instance()->text($subgroupDescription) !!} 13 |
14 | @endif 15 | @endif 16 | @foreach($subgroup as $endpoint) 17 | @include("scribe::themes.default.endpoint") 18 | @endforeach 19 | @endforeach 20 | @endforeach 21 | 22 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | subDays(3)) 30 | ->get(); 31 | 32 | foreach ($doctorsToUnban as $doctor) { 33 | $doctor->banned_at = Null; 34 | $doctor->save(); 35 | } 36 | 37 | $this->info(count($doctorsToUnban) . ' users have been unbanned.'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /database/seeders/AreaSeeder.php: -------------------------------------------------------------------------------- 1 | 'Smouha', 19 | 'address' => '26 smouha', 20 | 'country_id' => '818', 21 | ], 22 | [ 23 | 'name' => 'Sidibishr', 24 | 'address' => '16 mahmoud reda', 25 | 'country_id' => '818', 26 | ], 27 | [ 28 | 'name' => 'campchizar', 29 | 'address' => '46 helipolis', 30 | 'country_id' => '818', 31 | ], 32 | ]; 33 | 34 | foreach($areas as $area){ 35 | Area::create($area); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->morphs('tokenable'); 17 | $table->string('name'); 18 | $table->string('token', 64)->unique(); 19 | $table->text('abilities')->nullable(); 20 | $table->timestamp('last_used_at')->nullable(); 21 | $table->timestamp('expires_at')->nullable(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('personal_access_tokens'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | */ 26 | public function boot(): void 27 | { 28 | // 29 | } 30 | 31 | /** 32 | * Determine if events and listeners should be automatically discovered. 33 | */ 34 | public function shouldDiscoverEvents(): bool 35 | { 36 | return false; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Console/Commands/NotifyInactiveClients.php: -------------------------------------------------------------------------------- 1 | subMonth())->get(); 33 | foreach ( $clients as $client ) { 34 | Mail::to($client->email)->send(new InactiveClientMail($client)); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Http/Controllers/StripeController.php: -------------------------------------------------------------------------------- 1 | query('id'))->firstOrFail(); 14 | return view('stripe' , ["order" => $order]); 15 | } 16 | public function stripePost(Request $request) 17 | { 18 | $order = Order::find( $request->order_id); 19 | Stripe\Stripe::setApiKey(env('STRIPE_SECRET')); 20 | Stripe\Charge::create ([ 21 | "amount" => $order-> total_price, 22 | "currency" => "usd", 23 | "source" => $request->stripeToken, 24 | "description" => "pay for medicines order" 25 | ]); 26 | 27 | Session::flash('success', 'Payment successful!'); 28 | 29 | return to_route('order.orderConfirm' , ['id'=>$request->order_id]); 30 | } 31 | } -------------------------------------------------------------------------------- /resources/views/components/modal.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class UserFactory extends Factory 12 | { 13 | /** 14 | * Define the model's default state. 15 | * 16 | * @return arrayNavigating the world of pharmaceuticals, One click at a time!
25 |
22 | We are pleased to inform you that your order has been confirmed and is on its way to you.
28 |Thank you for choosing DrugRadar. We hope to serve you again in the future.
29 |
22 | We're sorry to hear that you've cancelled your order
29 |Thank you for choosing DrugRadar. We hope to serve you again in the future.
30 |We're sorry but you can not cancel this order
35 |Thank you for choosing DrugRadar. We hope to serve you again in the future.
36 || Pharmacy Avatar | 11 |Pharmacy Name | 12 |Total Orders | 13 |Total Revenue | 14 | 15 |
|---|
69 | {{$admin->name}}
72 |{{$admin->email}}
79 |{{$admin->created_at->longRelativeToNowDiffForHumans()}}
87 |