From 8d98ad178ab0085abed8d140ee18eee226995e70 Mon Sep 17 00:00:00 2001 From: wilsonkinyua Date: Thu, 12 Aug 2021 17:27:07 +0300 Subject: [PATCH] setting of agenda date done --- .../Controllers/Admin/AgendaController.php | 4 +- .../Admin/AgendaDatesController.php | 76 ++ .../Api/V1/Admin/AgendaDatesApiController.php | 56 + .../Traits/MediaUploadingTrait.php | 3 +- .../Requests/MassDestroyAgendaDateRequest.php | 26 + app/Http/Requests/StoreAgendaDateRequest.php | 26 + app/Http/Requests/UpdateAgendaDateRequest.php | 26 + .../Resources/Admin/AgendaDateResource.php | 13 + app/Models/AgendaDate.php | 46 + ...08_12_000014_create_agenda_dates_table.php | 18 + database/seeders/PermissionsTableSeeder.php | 24 + public/assets/css/style.css | 239 ++-- public/css/custom.css | 16 +- public/js/main.js | 3 + resources/lang/en/cruds.php | 16 + resources/lang/en/global.php | 1 + resources/views/admin/agenda/index.blade.php | 1193 +++++------------ .../views/admin/agendaDates/create.blade.php | 33 + .../views/admin/agendaDates/edit.blade.php | 34 + .../views/admin/agendaDates/index.blade.php | 131 ++ .../views/admin/agendaDates/show.blade.php | 47 + .../views/admin/companies/show.blade.php | 2 +- resources/views/home.blade.php | 553 +------- resources/views/layouts/main.blade.php | 15 +- .../modal/agenda-shedule-modal.blade.php | 32 + resources/views/partials/menu.blade.php | 86 +- routes/api.php | 3 + routes/web.php | 4 + storage/tmp/uploads/61150059b80c2_mvp.sql | 1072 +++++++++++++++ storage/tmp/uploads/mvp.sql | 1072 +++++++++++++++ 30 files changed, 3300 insertions(+), 1570 deletions(-) create mode 100644 app/Http/Controllers/Admin/AgendaDatesController.php create mode 100644 app/Http/Controllers/Api/V1/Admin/AgendaDatesApiController.php create mode 100644 app/Http/Requests/MassDestroyAgendaDateRequest.php create mode 100644 app/Http/Requests/StoreAgendaDateRequest.php create mode 100644 app/Http/Requests/UpdateAgendaDateRequest.php create mode 100644 app/Http/Resources/Admin/AgendaDateResource.php create mode 100644 app/Models/AgendaDate.php create mode 100644 database/migrations/2021_08_12_000014_create_agenda_dates_table.php create mode 100644 resources/views/admin/agendaDates/create.blade.php create mode 100644 resources/views/admin/agendaDates/edit.blade.php create mode 100644 resources/views/admin/agendaDates/index.blade.php create mode 100644 resources/views/admin/agendaDates/show.blade.php create mode 100644 resources/views/modal/agenda-shedule-modal.blade.php create mode 100644 storage/tmp/uploads/61150059b80c2_mvp.sql create mode 100644 storage/tmp/uploads/mvp.sql diff --git a/app/Http/Controllers/Admin/AgendaController.php b/app/Http/Controllers/Admin/AgendaController.php index 1de8177..c0a463f 100644 --- a/app/Http/Controllers/Admin/AgendaController.php +++ b/app/Http/Controllers/Admin/AgendaController.php @@ -3,12 +3,14 @@ namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; +use App\Models\AgendaDate; use Illuminate\Http\Request; class AgendaController extends Controller { // view agenda public function index() { - return view('admin.agenda.index'); + $agendaDates = AgendaDate::all(); + return view('admin.agenda.index', compact('agendaDates')); } } diff --git a/app/Http/Controllers/Admin/AgendaDatesController.php b/app/Http/Controllers/Admin/AgendaDatesController.php new file mode 100644 index 0000000..8478ac8 --- /dev/null +++ b/app/Http/Controllers/Admin/AgendaDatesController.php @@ -0,0 +1,76 @@ +all()); + + // return redirect()->route('admin.agenda-dates.index'); + return redirect()->back(); + } + + public function edit(AgendaDate $agendaDate) + { + abort_if(Gate::denies('agenda_date_edit'), Response::HTTP_FORBIDDEN, '403 Forbidden'); + + return view('admin.agendaDates.edit', compact('agendaDate')); + } + + public function update(UpdateAgendaDateRequest $request, AgendaDate $agendaDate) + { + $agendaDate->update($request->all()); + + return redirect()->route('admin.agenda-dates.index'); + } + + public function show(AgendaDate $agendaDate) + { + abort_if(Gate::denies('agenda_date_show'), Response::HTTP_FORBIDDEN, '403 Forbidden'); + + return view('admin.agendaDates.show', compact('agendaDate')); + } + + public function destroy(AgendaDate $agendaDate) + { + abort_if(Gate::denies('agenda_date_delete'), Response::HTTP_FORBIDDEN, '403 Forbidden'); + + $agendaDate->delete(); + + return back(); + } + + public function massDestroy(MassDestroyAgendaDateRequest $request) + { + AgendaDate::whereIn('id', request('ids'))->delete(); + + return response(null, Response::HTTP_NO_CONTENT); + } +} diff --git a/app/Http/Controllers/Api/V1/Admin/AgendaDatesApiController.php b/app/Http/Controllers/Api/V1/Admin/AgendaDatesApiController.php new file mode 100644 index 0000000..960435f --- /dev/null +++ b/app/Http/Controllers/Api/V1/Admin/AgendaDatesApiController.php @@ -0,0 +1,56 @@ +all()); + + return (new AgendaDateResource($agendaDate)) + ->response() + ->setStatusCode(Response::HTTP_CREATED); + } + + public function show(AgendaDate $agendaDate) + { + abort_if(Gate::denies('agenda_date_show'), Response::HTTP_FORBIDDEN, '403 Forbidden'); + + return new AgendaDateResource($agendaDate); + } + + public function update(UpdateAgendaDateRequest $request, AgendaDate $agendaDate) + { + $agendaDate->update($request->all()); + + return (new AgendaDateResource($agendaDate)) + ->response() + ->setStatusCode(Response::HTTP_ACCEPTED); + } + + public function destroy(AgendaDate $agendaDate) + { + abort_if(Gate::denies('agenda_date_delete'), Response::HTTP_FORBIDDEN, '403 Forbidden'); + + $agendaDate->delete(); + + return response(null, Response::HTTP_NO_CONTENT); + } +} diff --git a/app/Http/Controllers/Traits/MediaUploadingTrait.php b/app/Http/Controllers/Traits/MediaUploadingTrait.php index cd77ae0..311f08a 100644 --- a/app/Http/Controllers/Traits/MediaUploadingTrait.php +++ b/app/Http/Controllers/Traits/MediaUploadingTrait.php @@ -36,7 +36,8 @@ public function storeMedia(Request $request) $file = $request->file('file'); - $name = uniqid() . '_' . trim($file->getClientOriginalName()); + // $name = uniqid() . '_' . trim($file->getClientOriginalName()); + $name = trim($file->getClientOriginalName()); $file->move($path, $name); diff --git a/app/Http/Requests/MassDestroyAgendaDateRequest.php b/app/Http/Requests/MassDestroyAgendaDateRequest.php new file mode 100644 index 0000000..7ba37f5 --- /dev/null +++ b/app/Http/Requests/MassDestroyAgendaDateRequest.php @@ -0,0 +1,26 @@ + 'required|array', + 'ids.*' => 'exists:agenda_dates,id', + ]; + } +} diff --git a/app/Http/Requests/StoreAgendaDateRequest.php b/app/Http/Requests/StoreAgendaDateRequest.php new file mode 100644 index 0000000..795da33 --- /dev/null +++ b/app/Http/Requests/StoreAgendaDateRequest.php @@ -0,0 +1,26 @@ + [ + 'required', + // 'date_format:' . config('panel.date_format'), + ], + ]; + } +} diff --git a/app/Http/Requests/UpdateAgendaDateRequest.php b/app/Http/Requests/UpdateAgendaDateRequest.php new file mode 100644 index 0000000..872ca5c --- /dev/null +++ b/app/Http/Requests/UpdateAgendaDateRequest.php @@ -0,0 +1,26 @@ + [ + 'required', + 'date_format:' . config('panel.date_format'), + ], + ]; + } +} diff --git a/app/Http/Resources/Admin/AgendaDateResource.php b/app/Http/Resources/Admin/AgendaDateResource.php new file mode 100644 index 0000000..e0ed529 --- /dev/null +++ b/app/Http/Resources/Admin/AgendaDateResource.php @@ -0,0 +1,13 @@ +format(config('panel.date_format')) : null; + } + + public function setDateAttribute($value) + { + $this->attributes['agenda_date'] = $value ? Carbon::createFromFormat(config('panel.date_format'), $value)->format('Y-m-d') : null; + } + + protected function serializeDate(DateTimeInterface $date) + { + return $date->format('Y-m-d H:i:s'); + } +} diff --git a/database/migrations/2021_08_12_000014_create_agenda_dates_table.php b/database/migrations/2021_08_12_000014_create_agenda_dates_table.php new file mode 100644 index 0000000..a37f8f0 --- /dev/null +++ b/database/migrations/2021_08_12_000014_create_agenda_dates_table.php @@ -0,0 +1,18 @@ +bigIncrements('id'); + $table->date('agenda_date'); + $table->timestamps(); + $table->softDeletes(); + }); + } +} diff --git a/database/seeders/PermissionsTableSeeder.php b/database/seeders/PermissionsTableSeeder.php index ee9a04c..e1df762 100644 --- a/database/seeders/PermissionsTableSeeder.php +++ b/database/seeders/PermissionsTableSeeder.php @@ -264,8 +264,32 @@ public function run() ], [ 'id' => 64, + 'title' => 'agenda_date_create', + ], + [ + 'id' => 65, + 'title' => 'agenda_date_edit', + ], + [ + 'id' => 66, + 'title' => 'agenda_date_show', + ], + [ + 'id' => 67, + 'title' => 'agenda_date_delete', + ], + [ + 'id' => 68, + 'title' => 'agenda_date_access', + ], + [ + 'id' => 69, 'title' => 'profile_password_edit', ], + [ + 'id' => 70, + 'title' => 'no_role', + ], ]; Permission::insert($permissions); diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 947d897..44cd858 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -209,7 +209,7 @@ .ms-text-primary, .ms-text-primary:hover, .ms-text-primary:focus{ - color: #357ffa; + color: #1BC5BD; } .ms-text-secondary, .ms-text-secondary:hover, @@ -247,7 +247,7 @@ color: #34334a; } .bg-primary{ - background-color: #357ffa; + background-color: #1BC5BD; } .bg-secondary{ background-color: #445cc8; @@ -427,7 +427,7 @@ a{ font-size: 14px; } a:hover, a:active, a:focus { - color: #357ffa; + color: #1BC5BD; text-decoration: none; } code{ @@ -494,7 +494,8 @@ pre{ background: #fff; -webkit-box-shadow: 0 1px 6px 1px rgba(69,65,78, 0.1); -moz-box-shadow: 0 1px 6px 1px rgba(69,65,78,0.1); - box-shadow: 0 1px 6px 1px rgba(69,65,78,0.1); + box-shadow: 0 2px 6px 1px rgba(45, 42, 53, 0.1); + /* box-shadow: 0 1.5em 2em -1em #999; */ margin-bottom: 30px; } .ms-panel.has-border{ @@ -1465,7 +1466,7 @@ a.ms-confirm-trigger:hover{ align-items: center; border-radius: 50%; background: #f0f0fa; - color: #357ffa; + color: #1BC5BD; margin-right: 1rem; font-size: 20px; } @@ -1560,7 +1561,7 @@ a.ms-confirm-trigger:hover{ position: absolute; right: .75rem; top: 8px; - color: #357ffa; + color: #1BC5BD; } .ms-crypto-widget .table{ margin-top: 1.5rem; @@ -1627,7 +1628,7 @@ a.ms-confirm-trigger:hover{ font-size: 4rem; } .ms-identifier-widget.bg-primary{ - background-color: #357ffa; + background-color: #1BC5BD; } .ms-identifier-widget.bg-secondary{ background-color: #445cc8; @@ -1781,7 +1782,7 @@ button[type="submit"]:disabled{ background-color: #fff; } input:checked + .ms-switch-slider { - background: #357ffa; + background: #1BC5BD; } input:checked + .ms-switch-slider:before { -webkit-transform: translateX(25px); @@ -1852,8 +1853,8 @@ input:checked + .ms-switch-slider:before { width: 18px; height: 18px; border-radius: 2px; - border: solid #357ffa; - background: #357ffa; + border: solid #1BC5BD; + background: #1BC5BD; border-width: 2px; -webkit-transition: all; -moz-transition: all; @@ -1903,8 +1904,8 @@ input:disabled + .ms-switch-slider{ .ms-checkbox-wrap.ms-checkbox-primary input[type="checkbox"]:checked + i.ms-checkbox-check::before, .ms-checkbox-wrap.ms-checkbox-primary input[type="radio"]:checked + i.ms-checkbox-check::before, input:checked + .ms-switch-slider.ms-switch-primary{ - background: #357ffa; - border-color: #357ffa; + background: #1BC5BD; + border-color: #1BC5BD; } .ms-checkbox-wrap.ms-checkbox-secondary input[type="checkbox"]:checked + i.ms-checkbox-check::before, .ms-checkbox-wrap.ms-checkbox-secondary input[type="radio"]:checked + i.ms-checkbox-check::before, @@ -1921,14 +1922,14 @@ input:checked + .ms-switch-slider.ms-switch-success{ .ms-checkbox-wrap.ms-checkbox-warning input[type="checkbox"]:checked + i.ms-checkbox-check::before, .ms-checkbox-wrap.ms-checkbox-warning input[type="radio"]:checked + i.ms-checkbox-check::before, input:checked + .ms-switch-slider.ms-switch-warning{ - background: #fda600; - border-color: #fda600; + background: #FFA800; + border-color: #FFA800; } .ms-checkbox-wrap.ms-checkbox-danger input[type="checkbox"]:checked + i.ms-checkbox-check::before, .ms-checkbox-wrap.ms-checkbox-danger input[type="radio"]:checked + i.ms-checkbox-check::before, input:checked + .ms-switch-slider.ms-switch-danger{ - background: #f9423c; - border-color: #f9423c; + background: #F64E60; + border-color: #F64E60; } .ms-checkbox-wrap.ms-checkbox-info input[type="checkbox"]:checked + i.ms-checkbox-check::before, .ms-checkbox-wrap.ms-checkbox-info input[type="radio"]:checked + i.ms-checkbox-check::before, @@ -1967,7 +1968,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ max-width: 80px; } .ms-radio-img input[type="radio"]:checked + .ms-payment-img{ - border-color: #357ffa; + border-color: #1BC5BD; } /* Form Validation */ @@ -2105,10 +2106,10 @@ input:checked + .ms-switch-slider.ms-switch-dark{ display: block; } .ms-form-wizard ul[role="tablist"] li.current::after{ - border-left-color: #357ffa; + border-left-color: #1BC5BD; } .ms-form-wizard ul[role="tablist"] li.current{ - background-color: #357ffa; + background-color: #1BC5BD; } .ms-form-wizard ul[role="tablist"] li.done::after{ border-left-color: #3377e8; @@ -2152,8 +2153,8 @@ input:checked + .ms-switch-slider.ms-switch-dark{ color: #fff; } .ms-form-wizard .actions ul li:not(.disabled) a{ - background-color: #357ffa; - border-color: #357ffa; + background-color: #1BC5BD; + border-color: #1BC5BD; } .ms-form-wizard .actions ul li.disabled a{ background-color: #e4e3e8; @@ -2196,7 +2197,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ right: 0; left: auto; background: #fff; - color: #357ffa; + color: #1BC5BD; } .ms-wizard-pill.ms-form-wizard ul[role="tablist"] li.current:last-child a::after, .ms-wizard-pill.ms-form-wizard ul[role="tablist"] li.done:last-child a::after, @@ -2207,7 +2208,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .ms-wizard-pill.ms-form-wizard ul[role="tablist"] li.disabled a .number{ background-color: #fff; - color: #357ffa; + color: #1BC5BD; } .ms-wizard-pill.ms-form-wizard ul[role="tablist"] li:first-child{ border-top-left-radius: 25px; @@ -2247,14 +2248,14 @@ input:checked + .ms-switch-slider.ms-switch-dark{ .ms-wizard-round.ms-form-wizard ul[role="tablist"] li.done:last-child a::after, .ms-wizard-round.ms-form-wizard ul[role="tablist"] li.current:last-child a::after{ background-color: #fff; - border-color: #357ffa; - color: #357ffa; + border-color: #1BC5BD; + color: #1BC5BD; } .ms-wizard-round.ms-form-wizard ul[role="tablist"] li.current a .number, .ms-wizard-round.ms-form-wizard ul[role="tablist"] li.done a .number, .ms-wizard-round.ms-form-wizard ul[role="tablist"] li.done:last-child a::after{ - border-color: #357ffa; - color: #357ffa; + border-color: #1BC5BD; + color: #1BC5BD; } .ms-wizard-round.ms-form-wizard ul[role="tablist"] li:last-child a::after{ left:auto; @@ -2274,7 +2275,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ left: 0; min-width: 250px; height: 100%;; - background-color: #357ffa; + background-color: #1BC5BD; padding: 1rem; } .ms-wizard-vertical.ms-form-wizard ul[role="tablist"] li{ @@ -2313,7 +2314,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ justify-content: center; align-items: center; background-color: #fff; - color: #357ffa; + color: #1BC5BD; } .ms-wizard-vertical.ms-form-wizard ul[role="tablist"] li a{ color: #fff; @@ -2324,12 +2325,12 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .ms-wizard-vertical.ms-form-wizard ul[role="tablist"] li.current a .number, .ms-wizard-vertical.ms-form-wizard ul[role="tablist"] li.done a .number{ - background-color: #357ffa; + background-color: #1BC5BD; color: #fff; } .ms-wizard-vertical.ms-form-wizard ul[role="tablist"] li.current a, .ms-wizard-vertical.ms-form-wizard ul[role="tablist"] li.done a{ - color: #357ffa; + color: #1BC5BD; } .ms-wizard-vertical.ms-form-wizard .content, .ms-wizard-vertical.ms-form-wizard .actions{ @@ -2419,13 +2420,13 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .alert.alert-warning{ background-color: #fef6e3; - color: #fda600; - border-color: #fda600; + color: #FFA800; + border-color: #FFA800; } .alert.alert-danger{ background-color: #ffebea; - color: #f9423c; - border-color: #f9423c; + color: #F64E60; + border-color: #F64E60; } .alert.alert-brand{ background-color: #eaedff; @@ -2445,10 +2446,10 @@ input:checked + .ms-switch-slider.ms-switch-dark{ background-color: #4f8dca; } .alert.alert-solid.alert-warning{ - background-color: #fda600; + background-color: #FFA800; } .alert.alert-solid.alert-danger{ - background-color: #f9423c; + background-color: #F64E60; } .alert.alert-solid.alert-brand{ background-color: #374eae; @@ -2565,7 +2566,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .ms-card.card-primary, .ms-dark-theme .ms-card.card-primary{ - background-color: #357ffa; + background-color: #1BC5BD; } .ms-card.card-secondary, .ms-dark-theme .ms-card.card-secondary{ @@ -2577,11 +2578,11 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .ms-card.card-warning, .ms-dark-theme .ms-card.card-warning{ - background-color: #fda600; + background-color: #FFA800; } .ms-card.card-danger, .ms-dark-theme .ms-card.card-danger{ - background-color: #f9423c; + background-color: #F64E60; } .ms-card.card-info, .ms-dark-theme .ms-card.card-info{ @@ -2759,7 +2760,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ .progress-rounded svg circle{ stroke-dasharray: 358.141563 358.141563; stroke-dashoffset: 360; - stroke: #357ffa; + stroke: #1BC5BD; stroke-linecap: square; -webkit-transition: all .6s ease; -o-transition: all .6s ease; @@ -2776,7 +2777,7 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .progress-rounded svg circle.bg-primary{ - stroke: #357ffa; + stroke: #1BC5BD; } .progress-rounded svg circle.bg-secondary{ stroke: #445cc8; @@ -2838,8 +2839,8 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .btn-primary{ color: #fff; - background-color: #357ffa; - border-color: #357ffa; + background-color: #1BC5BD; + border-color: #1BC5BD; } .btn-white{ font-weight: 500; @@ -2903,8 +2904,8 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .btn-danger{ color: #fff; - background-color: #f9423c; - border-color: #f9423c; + background-color: #F64E60; + border-color: #F64E60; } .btn-danger:hover, .btn-danger:focus, @@ -2917,8 +2918,8 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .btn-warning{ color: #fff; - background-color: #fda600; - border-color: #fda600; + background-color: #FFA800; + border-color: #FFA800; } .btn-warning:hover, .btn-warning:focus, @@ -2985,8 +2986,8 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .ms-btn-icon-outline.btn-primary, .btn-outline-primary{ - color: #357ffa; - border-color: #357ffa; + color: #1BC5BD; + border-color: #1BC5BD; } .ms-btn-icon-outline.btn-secondary, .btn-outline-secondary{ @@ -2995,8 +2996,8 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .ms-btn-icon-outline.btn-success, .btn-outline-success{ - color: #83ccaf; - border-color: #83ccaf; + color: #07d1f1; + border-color: #07d1f1; } .ms-btn-icon-outline.btn-info, .btn-outline-info{ @@ -3005,13 +3006,13 @@ input:checked + .ms-switch-slider.ms-switch-dark{ } .ms-btn-icon-outline.btn-warning, .btn-outline-warning{ - color: #fda600; - border-color: #fda600; + color: #FFA800; + border-color: #FFA800; } .ms-btn-icon-outline.btn-danger, .btn-outline-danger{ - color: #f9423c; - border-color: #f9423c; + color: #F64E60; + border-color: #F64E60; } .ms-btn-icon-outline.btn-dark, .btn-outline-dark{ @@ -3087,7 +3088,7 @@ a.badge[class*='badge-']:hover{ color: #fff; } .badge.badge-primary{ - background-color: #357ffa; + background-color: #1BC5BD; } .badge.badge-secondary{ background-color: #445cc8; @@ -3096,10 +3097,10 @@ a.badge[class*='badge-']:hover{ background-color: #07be6e; } .badge.badge-warning{ - background-color: #fda600; + background-color: #FFA800; } .badge.badge-danger{ - background-color: #f9423c; + background-color: #F64E60; } .badge.badge-info{ background-color: #4f8dca; @@ -3143,8 +3144,8 @@ a .badge[class*='badge-outline-']{ background-color: #fff; } .badge.badge-outline-primary{ - border-color: #357ffa; - color: #357ffa; + border-color: #1BC5BD; + color: #1BC5BD; } .badge.badge-outline-secondary{ border-color: #374eae; @@ -3155,12 +3156,12 @@ a .badge[class*='badge-outline-']{ color: #07be6e; } .badge.badge-outline-warning{ - border-color: #fda600; - color: #fda600; + border-color: #FFA800; + color: #FFA800; } .badge.badge-outline-danger{ - border-color: #f9423c; - color: #f9423c; + border-color: #F64E60; + color: #F64E60; } .badge.badge-outline-info{ border-color: #4f8dca; @@ -3238,8 +3239,8 @@ a .badge[class*='badge-outline-']{ .page-item.active .page-link, .pagination-light .page-item.active .page-link{ color: #fff; - background-color: #357ffa; - border-color: #357ffa; + background-color: #1BC5BD; + border-color: #1BC5BD; z-index: 0; } .page-item.active-circle .page-link, @@ -3258,7 +3259,7 @@ a .badge[class*='badge-outline-']{ width: calc(100% + 0.4rem); height: 100%; z-index: -1; - background-color: #357ffa; + background-color: #1BC5BD; border-radius: 25px; transform: scale(1.2); } @@ -3266,8 +3267,8 @@ a .badge[class*='badge-outline-']{ border-radius: 5px; } .page-item.active-bordered .page-link{ - border-bottom: 2px solid #357ffa; - color: #357ffa; + border-bottom: 2px solid #1BC5BD; + color: #1BC5BD; } .pagination-pill .page-item:first-child .page-link{ border-top-left-radius: 25px; @@ -3335,7 +3336,7 @@ a .badge[class*='badge-outline-']{ margin-left: -40%; margin-top: -40%; z-index: -1; - background-color: #357ffa; + background-color: #1BC5BD; transform: rotate(45deg); border-radius: 5px; } @@ -3370,7 +3371,7 @@ a .badge[class*='badge-outline-']{ .spinner-1{ width: 40px; height: 40px; - background-color: #357ffa; + background-color: #1BC5BD; margin: 100px auto; -webkit-animation: ms-rotateplane 1.2s infinite ease-in-out; animation: ms-rotateplane 1.2s infinite ease-in-out; @@ -3385,7 +3386,7 @@ a .badge[class*='badge-outline-']{ width: 100%; height: 100%; border-radius: 50%; - background-color: #357ffa; + background-color: #1BC5BD; opacity: 0.6; position: absolute; top: 0; @@ -3405,7 +3406,7 @@ a .badge[class*='badge-outline-']{ font-size: 10px; } .spinner-3 > div { - background-color: #357ffa; + background-color: #1BC5BD; height: 100%; width: 6px; display: inline-block; @@ -3435,7 +3436,7 @@ a .badge[class*='badge-outline-']{ position: relative; } .cube1, .cube2 { - background-color: #357ffa; + background-color: #1BC5BD; width: 15px; height: 15px; position: absolute; @@ -3452,7 +3453,7 @@ a .badge[class*='badge-outline-']{ width: 40px; height: 40px; margin: 100px auto; - background-color: #357ffa; + background-color: #1BC5BD; border-radius: 100%; -webkit-animation: ms-scaleout 1.0s infinite ease-in-out; animation: ms-scaleout 1.0s infinite ease-in-out; @@ -3472,7 +3473,7 @@ a .badge[class*='badge-outline-']{ display: inline-block; position: absolute; top: 0; - background-color: #357ffa; + background-color: #1BC5BD; border-radius: 100%; -webkit-animation: ms-bounce 2.0s infinite ease-in-out; animation: ms-bounce 2.0s infinite ease-in-out; @@ -3491,7 +3492,7 @@ a .badge[class*='badge-outline-']{ .spinner-7 > div { width: 18px; height: 18px; - background-color: #357ffa; + background-color: #1BC5BD; border-radius: 100%; display: inline-block; -webkit-animation: ms-bouncedelay 1.4s infinite ease-in-out both; @@ -3524,7 +3525,7 @@ a .badge[class*='badge-outline-']{ margin: 0 auto; width: 15%; height: 15%; - background-color: #357ffa; + background-color: #1BC5BD; border-radius: 100%; -webkit-animation: ms-circleBounceDelay 1.2s infinite ease-in-out both; animation: ms-circleBounceDelay 1.2s infinite ease-in-out both; @@ -3615,7 +3616,7 @@ a .badge[class*='badge-outline-']{ .spinner-9 .ms-cube { width: 33%; height: 33%; - background-color: #357ffa; + background-color: #1BC5BD; float: left; -webkit-animation: ms-cubeGridScaleDelay 1.3s infinite ease-in-out; animation: ms-cubeGridScaleDelay 1.3s infinite ease-in-out; @@ -3676,7 +3677,7 @@ a .badge[class*='badge-outline-']{ left: 0; width: 100%; height: 100%; - background-color: #357ffa; + background-color: #1BC5BD; -webkit-animation: ms-foldCubeAngle 2.4s infinite linear both; animation: ms-foldCubeAngle 2.4s infinite linear both; -webkit-transform-origin: 100% 100%; @@ -3734,7 +3735,7 @@ a .badge[class*='badge-outline-']{ margin: 0 auto; width: 15%; height: 15%; - background-color: #357ffa; + background-color: #1BC5BD; border-radius: 100%; -webkit-animation: ms-circleFadeDelay 1.2s infinite ease-in-out both; animation: ms-circleFadeDelay 1.2s infinite ease-in-out both; @@ -3854,8 +3855,8 @@ border: 0; color: #34334a; } .nav-tabs li a.active{ - color: #83ccaf; - /* background-color: #357ffa; */ + color: #07d1f1; + /* background-color: #1BC5BD; */ } .nav-tabs.tabs-bordered li a{ -webkit-transition: 0s; @@ -4170,7 +4171,7 @@ border: 0; } .modal-min .modal-body i::before{ font-size: 60px; - color: #357ffa; + color: #1BC5BD; } .modal-min .ms-form-group.has-icon i, .modal-max .ms-form-group.has-icon i{ @@ -4215,15 +4216,15 @@ border: 0; .ms-star-rating.rating-fill .ms-rating-item.rated, .ms-star-rating.rating-fill .ms-rating-item:hover, .ms-star-rating.rating-fill .ms-rating-item:hover ~ .ms-rating-item{ - background-color: #357ffa; - border-color: #357ffa; + background-color: #1BC5BD; + border-color: #1BC5BD; color: #fff; } .ms-star-rating.rating-bordered .ms-rating-item.rated, .ms-star-rating.rating-bordered .ms-rating-item:hover, .ms-star-rating.rating-bordered .ms-rating-item:hover ~ .ms-rating-item{ - border: 1px solid #357ffa; - color: #357ffa; + border: 1px solid #1BC5BD; + color: #1BC5BD; } .ms-star-rating.rating-fill.heart-rating .ms-rating-item.rated, .ms-star-rating.rating-fill.heart-rating .ms-rating-item:hover, @@ -4246,7 +4247,7 @@ border: 0; border-radius: 0; padding: 3px 0; width: 40px; - border-color: #357ffa; + border-color: #1BC5BD; border-left: 1px solid rgba(0,0,0,0.08); border-right: 0; } @@ -4257,18 +4258,18 @@ border: 0; .ms-star-rating.misc-number .ms-rating-item.rated, .ms-star-rating.misc-number .ms-rating-item:hover, .ms-star-rating.misc-number .ms-rating-item:hover ~ .ms-rating-item{ - background: #357ffa; + background: #1BC5BD; color: #fff; } .ms-star-rating.misc-number .ms-rating-item:first-child{ border-top-right-radius: 25px; border-bottom-right-radius: 25px; - border-right: 1px solid #357ffa; + border-right: 1px solid #1BC5BD; } .ms-star-rating.misc-number .ms-rating-item:last-child{ border-top-left-radius: 25px; border-bottom-left-radius: 25px; - border-left: 1px solid #357ffa; + border-left: 1px solid #1BC5BD; } .ms-star-rating.letter-rating .ms-rating-item{ padding: 2px 0; @@ -4297,7 +4298,7 @@ border: 0; height: 3px; border-radius: 0; border: 0; - background-color: #357ffa; + background-color: #1BC5BD; opacity: 0.3; } .ms-star-rating.misc-square .ms-rating-item{ @@ -4316,8 +4317,8 @@ border: 0; /* Tour */ div#driver-popover-item .driver-popover-footer button{ - background-color: #357ffa; - border-color: #357ffa; + background-color: #1BC5BD; + border-color: #1BC5BD; border-radius: 5px; color: #fff; font-size: 11px; @@ -4374,10 +4375,10 @@ div#driver-popover-item .driver-popover-footer .driver-close-btn:hover{ .irs--flat .irs-bar, .irs--flat .irs-from, .irs--flat .irs-to, .irs--flat .irs-single, .irs--flat .irs-handle>i:first-child{ - background-color: #357ffa; + background-color: #1BC5BD; } .irs--flat .irs-from:before, .irs--flat .irs-to:before, .irs--flat .irs-single:before{ - border-top-color: #357ffa; + border-top-color: #1BC5BD; } /* Animations */ @@ -4416,7 +4417,7 @@ div#driver-popover-item .driver-popover-footer .driver-close-btn:hover{ /* Basic Tables */ .thead-primary thead{ - background-color: #357ffa; + background-color: #1BC5BD; } .thead-secondary thead{ background-color: #445cc8; @@ -5259,7 +5260,7 @@ li .ms-count{ top: 0; left: 100%; border-top: 0px solid transparent; - border-left: 9px solid #357ffa; + border-left: 9px solid #1BC5BD; border-bottom: 12px solid transparent; } .ms-chat-bubble.ms-chat-incoming .ms-chat-text p:first-child{ @@ -5287,7 +5288,7 @@ li .ms-count{ text-align: left; } .ms-chat-bubble.ms-chat-outgoing .ms-chat-text p{ - background-color: #357ffa; + background-color: #1BC5BD; } .ms-chat-bubble.ms-chat-outgoing .ms-chat-time{ text-align: right; @@ -5341,7 +5342,7 @@ li .ms-count{ } .ms-open-chat.selected{ background-color: #e9ecef; - border-left: 3px solid #357ffa; + border-left: 3px solid #1BC5BD; } .ms-chat-user-container:hover .ms-hoverable-dropdown{ display: block; @@ -5492,7 +5493,7 @@ li .ms-count{ .ms-email-list .ms-list-item a:hover, .ms-email-list .ms-list-item a:hover i, .ms-email-list .ms-list-item a:focus i{ - color: #357ffa; + color: #1BC5BD; } .ms-email-aside{ padding: 1.5rem; @@ -5638,7 +5639,7 @@ li .ms-count{ background-color: #ec4e3f; } .ms-graph-regular{ - background-color: #357ffa; + background-color: #1BC5BD; } .ms-graph-labels p{ display: inline-block; @@ -5790,8 +5791,8 @@ li .ms-count{ } .ms-crypto-orders .nav-tabs li a{ background-color: transparent; - color: #357ffa; - border: 1px solid #357ffa; + color: #1BC5BD; + border: 1px solid #1BC5BD; padding: 0.825rem 1rem; border-radius: .2rem; margin-top: 0; @@ -5805,7 +5806,7 @@ li .ms-count{ border-bottom-left-radius: 0; } .ms-crypto-orders .nav-tabs li a.active{ - background-color: #357ffa; + background-color: #1BC5BD; color: #fff; } .ms-quick-stats{ @@ -5851,7 +5852,7 @@ li .ms-count{ } .ms-news-highlight:hover, .ms-dark-theme .ms-news-highlight:hover{ - border-top-color: #357ffa; + border-top-color: #1BC5BD; opacity: 0.8; } .ms-news-highlight h2{ @@ -5951,7 +5952,7 @@ table td .progress{ justify-content: center; align-items: center; border-radius: 50%; - background-color: #357ffa; + background-color: #1BC5BD; color: #fff; margin-right: 5px; font-size: 12px; @@ -6038,7 +6039,7 @@ body.ms-dark-theme, .ms-dark-theme a, color: #5c6dc0; } .ms-dark-theme a:hover, .ms-dark-theme a:active { - color: #357ffa; + color: #1BC5BD; } .ms-dark-theme .ms-news-highlight{ border-top: 3px solid #323a67; @@ -6073,8 +6074,8 @@ body.ms-dark-theme, .ms-dark-theme a, .ms-dark-theme .page-item.active .page-link, .ms-dark-theme .pagination-light .page-item.active .page-link{ color: #fff; - background-color: #357ffa; - border-color: #357ffa; + background-color: #1BC5BD; + border-color: #1BC5BD; z-index: 0; } .ms-dark-theme .page-link, @@ -6199,11 +6200,11 @@ body.ms-dark-theme, .ms-dark-theme a, } .ms-dark-theme .nav-tabs li a.active{ color: #fff; - background-color: #357ffa; + background-color: #1BC5BD; } .ms-dark-theme .ms-crypto-orders .nav-tabs li a{ background-color: transparent; - color: #357ffa; + color: #1BC5BD; } .ms-dark-theme .dropdown-menu .media:hover, .ms-dark-theme .ms-open-chat:hover, @@ -6745,14 +6746,14 @@ body:not(.ms-settings-open) .ms-settings-toggle:hover{ } .get-in-touch span i { - color: #83ccaf; + color: #07d1f1; margin-right: 5px; } .files i { font-size: 15px; padding-right: 30px !important; - color: #83ccaf; + color: #07d1f1; } @@ -6762,13 +6763,13 @@ body:not(.ms-settings-open) .ms-settings-toggle:hover{ .edit-button i { font-size: 20px; - color: #83ccaf; + color: #07d1f1; cursor: pointer; float: right; } .edit-button-social i { font-size: 20px; - color: #83ccaf; + color: #07d1f1; cursor: pointer; } .events small { @@ -6776,7 +6777,7 @@ body:not(.ms-settings-open) .ms-settings-toggle:hover{ margin-left: 5px; } .btn-info { - background-color: #83ccaf; + background-color: #07d1f1; } .btn-info { border: none !important; diff --git a/public/css/custom.css b/public/css/custom.css index 431d25c..103a56c 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -181,7 +181,8 @@ table.dataTable thead .sorting_desc { } .btn-chat { - background: linear-gradient(0deg, #60b3c2 0%, #76c2b3 57.68%, #80c9ac 100%); + /* background: linear-gradient(0deg, #60b3c2 0%, #76c2b3 57.68%, #80c9ac 100%); */ + background-image: linear-gradient(to right, rgb(0, 198, 255) 0%, rgb(0, 114, 255) 51%, rgb(0, 198, 255) 100%); outline: none; box-shadow: 0px 2px 2px 0px rgb(0 0 0 / 11%), 0px 1px 3px 0px rgb(0 0 0 / 6%); @@ -246,7 +247,7 @@ table.dataTable thead .sorting_desc { } .text-theme { - color: #83ccaf; + color: #07d1f1; } .speaker-img { @@ -271,7 +272,7 @@ table.dataTable thead .sorting_desc { margin-top: 30px; } .btn-theme { - background-color: #83ccaf !important; + background-color: #07d1f1 !important; } .event-date-shedule .btn-theme { @@ -280,3 +281,12 @@ table.dataTable thead .sorting_desc { color: white; text-transform: uppercase; } + +/* .agenda-cards .ms-panel { + border-radius: 20px 20px 0px 0px; +} */ +.event-shedule li a { + font-weight: 600; + color: #a5a5a5; + /* font-size: 16px; */ +} diff --git a/public/js/main.js b/public/js/main.js index 022a137..0497315 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -86,4 +86,7 @@ $(document).ready(function () { $($.fn.dataTable.tables(true)).DataTable().columns.adjust(); }, 400); }); + + // adding class active to the agenda tab + $(".event-shedule li a").first().addClass("active"); }); diff --git a/resources/lang/en/cruds.php b/resources/lang/en/cruds.php index ce82c11..d99e8d9 100644 --- a/resources/lang/en/cruds.php +++ b/resources/lang/en/cruds.php @@ -313,4 +313,20 @@ 'deleted_at_helper' => ' ', ], ], + 'agendaDate' => [ + 'title' => 'Agenda Dates', + 'title_singular' => 'Agenda Date', + 'fields' => [ + 'id' => 'ID', + 'id_helper' => ' ', + 'date' => 'Date', + 'date_helper' => ' ', + 'created_at' => 'Created at', + 'created_at_helper' => ' ', + 'updated_at' => 'Updated at', + 'updated_at_helper' => ' ', + 'deleted_at' => 'Deleted at', + 'deleted_at_helper' => ' ', + ], + ], ]; diff --git a/resources/lang/en/global.php b/resources/lang/en/global.php index 8df70cc..7230e39 100644 --- a/resources/lang/en/global.php +++ b/resources/lang/en/global.php @@ -32,6 +32,7 @@ 'reset_password' => 'Reset Password', 'send_password' => 'Send Password Reset Link', 'save' => 'Save', + 'add' => 'Add', 'search' => 'Search', 'searching' => 'Searching', 'no_results' => 'No results', diff --git a/resources/views/admin/agenda/index.blade.php b/resources/views/admin/agenda/index.blade.php index 73e8620..f391570 100644 --- a/resources/views/admin/agenda/index.blade.php +++ b/resources/views/admin/agenda/index.blade.php @@ -86,913 +86,336 @@ class="flaticon-layers">
Meetings
-
+ -
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-

Exhibitor Pitch Session

-
-
-
-
- -
-
-
-

Lorem ipsum dolor sit, amet consectetur totam quisquam eligendi dicta consectetur - libero eaque eius quaerat quibusdam laboriosam recusandae exercitationem iure. - Velit a autem laudantium fugiat.

-
-
-
-
-

SPEAKERS

-
-
-

VIEW ALL -

-
-
-
-
- Speaker -
-
- Speaker -
-
- Speaker -
-
- Speaker -
-
- Speaker -
-
-
- - {{-- modal view all --}} -