Initial Commit
The initial public commit of MVGL website code.
This commit is contained in:
commit
b39ecf1638
2043 changed files with 215154 additions and 0 deletions
|
@ -0,0 +1,300 @@
|
|||
<!--begin::Basic info-->
|
||||
<div class="card {{ $class }}">
|
||||
<!--begin::Card header-->
|
||||
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_profile_details" aria-expanded="true" aria-controls="kt_account_profile_details">
|
||||
<!--begin::Card title-->
|
||||
<div class="card-title m-0">
|
||||
<h3 class="fw-bolder m-0">{{ __('Profile Details') }}</h3>
|
||||
</div>
|
||||
<!--end::Card title-->
|
||||
</div>
|
||||
<!--begin::Card header-->
|
||||
|
||||
<!--begin::Content-->
|
||||
<div id="kt_account_profile_details" class="collapse show">
|
||||
<!--begin::Form-->
|
||||
<form id="kt_account_profile_details_form" class="form" method="POST" action="{{ route('settings.update') }}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body border-top p-9">
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">{{ __('Avatar') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8">
|
||||
<!--begin::Image input-->
|
||||
<div class="image-input image-input-outline {{ isset($info) && $info->avatar ? '' : 'image-input-empty' }}" data-kt-image-input="true" style="background-image: url({{ asset(theme()->getMediaUrlPath() . 'avatars/blank.png') }})">
|
||||
<!--begin::Preview existing avatar-->
|
||||
<div class="image-input-wrapper w-125px h-125px" style="background-image: {{ isset($info) && $info->avatar_url ? 'url('.asset($info->avatar_url).')' : 'none' }};"></div>
|
||||
<!--end::Preview existing avatar-->
|
||||
|
||||
<!--begin::Label-->
|
||||
<label class="btn btn-icon btn-circle btn-active-color-primary w-25px h-25px bg-body shadow" data-kt-image-input-action="change" data-bs-toggle="tooltip" title="Change avatar">
|
||||
<i class="bi bi-pencil-fill fs-7"></i>
|
||||
|
||||
<!--begin::Inputs-->
|
||||
<input type="file" name="avatar" accept=".png, .jpg, .jpeg"/>
|
||||
<input type="hidden" name="avatar_remove"/>
|
||||
<!--end::Inputs-->
|
||||
</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Cancel-->
|
||||
<span class="btn btn-icon btn-circle btn-active-color-primary w-25px h-25px bg-body shadow" data-kt-image-input-action="cancel" data-bs-toggle="tooltip" title="Cancel avatar">
|
||||
<i class="bi bi-x fs-2"></i>
|
||||
</span>
|
||||
<!--end::Cancel-->
|
||||
|
||||
<!--begin::Remove-->
|
||||
<span class="btn btn-icon btn-circle btn-active-color-primary w-25px h-25px bg-body shadow" data-kt-image-input-action="remove" data-bs-toggle="tooltip" title="Remove avatar">
|
||||
<i class="bi bi-x fs-2"></i>
|
||||
</span>
|
||||
<!--end::Remove-->
|
||||
</div>
|
||||
<!--end::Image input-->
|
||||
|
||||
<!--begin::Hint-->
|
||||
<div class="form-text">Allowed file types: png, jpg, jpeg.</div>
|
||||
<!--end::Hint-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label required fw-bold fs-6">{{ __('Full Name') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8">
|
||||
<!--begin::Row-->
|
||||
<div class="row">
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-6 fv-row">
|
||||
<input type="text" name="first_name" class="form-control form-control-lg form-control-solid mb-3 mb-lg-0" placeholder="First name" value="{{ old('first_name', auth()->user()->first_name ?? '') }}"/>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-6 fv-row">
|
||||
<input type="text" name="last_name" class="form-control form-control-lg form-control-solid" placeholder="Last name" value="{{ old('last_name', auth()->user()->last_name ?? '') }}"/>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Row-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">{{ __('Company') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<input type="text" name="company" class="form-control form-control-lg form-control-solid" placeholder="Company name" value="{{ old('company', $info->company ?? '') }}"/>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">
|
||||
<span class="required">{{ __('Contact Phone') }}</span>
|
||||
|
||||
<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="{{ __('Phone number must be active') }}"></i>
|
||||
</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<input type="tel" name="phone" class="form-control form-control-lg form-control-solid" placeholder="Phone number" value="{{ old('phone', $info->phone ?? '') }}"/>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">{{ __('Company Site') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<input type="text" name="website" class="form-control form-control-lg form-control-solid" placeholder="Company website" value="{{ old('website', $info->website ?? '') }}"/>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">
|
||||
<span class="required">{{ __('Country') }}</span>
|
||||
|
||||
<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="{{ __('Country of origination') }}"></i>
|
||||
</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<select name="country" aria-label="{{ __('Select a Country') }}" data-control="select2" data-placeholder="{{ __('Select a country...') }}" class="form-select form-select-solid form-select-lg fw-bold">
|
||||
<option value="">{{ __('Select a Country...') }}</option>
|
||||
@foreach(\App\Core\Data::getCountriesList() as $key => $value)
|
||||
<option data-kt-flag="{{ $value['flag'] }}" value="{{ $key }}" {{ $key === old('country', $info->country ?? '') ? 'selected' :'' }}>{{ $value['name'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label required fw-bold fs-6">{{ __('Language') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<!--begin::Input-->
|
||||
<select name="language" aria-label="{{ __('Select a Language') }}" data-control="select2" data-placeholder="{{ __('Select a language...') }}" class="form-select form-select-solid form-select-lg">
|
||||
<option value="">{{ __('Select a Language...') }}</option>
|
||||
@foreach(\App\Core\Data::getLanguagesList() as $key => $value)
|
||||
<option data-kt-flag="{{ $value['country']['flag'] }}" value="{{ $key }}" {{ $key === old('language', $info->language ?? '') ? 'selected' :'' }}>{{ $value['name'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<!--end::Input-->
|
||||
|
||||
<!--begin::Hint-->
|
||||
<div class="form-text">
|
||||
{{ __('Please select a preferred language, including date, time, and number formatting.') }}
|
||||
</div>
|
||||
<!--end::Hint-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label required fw-bold fs-6">{{ __('Time Zone') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<select name="timezone" aria-label="{{ __('Select a Timezone') }}" data-control="select2" data-placeholder="{{ __('Select a timezone..') }}" class="form-select form-select-solid form-select-lg">
|
||||
<option value="">{{ __('Select a Timezone..') }}</option>
|
||||
@foreach(\App\Core\Data::getTimeZonesList() as $key => $value)
|
||||
<option data-bs-offset="{{ $value['offset'] }}" value="{{ $key }}" {{ $key === old('timezone', $info->timezone ?? '') ? 'selected' :'' }}>{{ $value['name'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">{{ __('Currency') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<select name="currency" aria-label="{{ __('Select a Currency') }}" data-control="select2" data-placeholder="{{ __('Select a currency..') }}" class="form-select form-select-solid form-select-lg">
|
||||
<option value="">{{ __('Select a currency..') }}</option>
|
||||
@foreach(\App\Core\Data::getCurrencyList() as $key => $value)
|
||||
<option data-kt-flag="{{ $value['country']['flag'] }}" value="{{ $key }}" {{ $key === old('currency', $info->currency ?? '') ? 'selected' :'' }}><b>{{ $key }}</b> - {{ $value['name'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">{{ __('Communication') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<!--begin::Options-->
|
||||
<div class="d-flex align-items-center mt-3">
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-inline form-check-solid me-5">
|
||||
<input type="hidden" name="communication[email]" value="0">
|
||||
<input class="form-check-input" name="communication[email]" type="checkbox" value="1" {{ old('marketing', $info->communication['email'] ?? '') ? 'checked' : '' }}/>
|
||||
<span class="fw-bold ps-2 fs-6">
|
||||
{{ __('Email') }}
|
||||
</span>
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-inline form-check-solid">
|
||||
<input type="hidden" name="communication[phone]" value="0">
|
||||
<input class="form-check-input" name="communication[phone]" type="checkbox" value="1" {{ old('email', $info->communication['phone'] ?? '') ? 'checked' : '' }}/>
|
||||
<span class="fw-bold ps-2 fs-6">
|
||||
{{ __('Phone') }}
|
||||
</span>
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
</div>
|
||||
<!--end::Options-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-0">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label fw-bold fs-6">{{ __('Allow Marketing') }}</label>
|
||||
<!--begin::Label-->
|
||||
|
||||
<!--begin::Label-->
|
||||
<div class="col-lg-8 d-flex align-items-center">
|
||||
<div class="form-check form-check-solid form-switch fv-row">
|
||||
<input type="hidden" name="marketing" value="0">
|
||||
<input class="form-check-input w-45px h-30px" type="checkbox" id="allowmarketing" name="marketing" value="1" {{ old('marketing', $info->marketing ?? '') ? 'checked' : '' }}/>
|
||||
<label class="form-check-label" for="allowmarketing"></label>
|
||||
</div>
|
||||
</div>
|
||||
<!--begin::Label-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
|
||||
<!--begin::Actions-->
|
||||
<div class="card-footer d-flex justify-content-end py-6 px-9">
|
||||
<button type="reset" class="btn btn-white btn-active-light-primary me-2">{{ __('Discard') }}</button>
|
||||
|
||||
<button type="submit" class="btn btn-primary" id="kt_account_profile_details_submit">
|
||||
@include('partials.general._button-indicator', ['label' => __('Save Changes')])
|
||||
</button>
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Basic info-->
|
133
resources/views/pages/account/settings/_signin-method.blade.php
Normal file
133
resources/views/pages/account/settings/_signin-method.blade.php
Normal file
|
@ -0,0 +1,133 @@
|
|||
<!--begin::Sign-in Method-->
|
||||
<div class="card {{ $class ?? '' }}" {{ util()->putHtmlAttributes(array('id' => $id ?? '')) }}>
|
||||
<!--begin::Card header-->
|
||||
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_signin_method">
|
||||
<div class="card-title m-0">
|
||||
<h3 class="fw-bolder m-0">{{ __('Sign-in Method') }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Card header-->
|
||||
|
||||
<!--begin::Content-->
|
||||
<div id="kt_account_signin_method" class="collapse show">
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body border-top p-9">
|
||||
<!--begin::Email Address-->
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
<!--begin::Label-->
|
||||
<div id="kt_signin_email">
|
||||
<div class="fs-6 fw-bolder mb-1">{{ __('Email Address') }}</div>
|
||||
<div class="fw-bold text-gray-600">{{ auth()->user()->email }}</div>
|
||||
</div>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Edit-->
|
||||
<div id="kt_signin_email_edit" class="flex-row-fluid d-none">
|
||||
<!--begin::Form-->
|
||||
<form id="kt_signin_change_email" class="form" novalidate="novalidate" method="POST" action="{{ route('settings.changeEmail') }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<input type="hidden" name="current_email" value="{{ auth()->user()->email }} "/>
|
||||
<div class="row mb-6">
|
||||
<div class="col-lg-6 mb-4 mb-lg-0">
|
||||
<div class="fv-row mb-0">
|
||||
<label for="email" class="form-label fs-6 fw-bolder mb-3">{{ __('Enter New Email Address') }}</label>
|
||||
<input type="email" class="form-control form-control-lg form-control-solid" placeholder="{{ __('Email Address') }}" name="email" value="{{ old('email') }}" id="email"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="fv-row mb-0">
|
||||
<label for="current_password" class="form-label fs-6 fw-bolder mb-3">{{ __('Confirm Password') }}</label>
|
||||
<input type="password" class="form-control form-control-lg form-control-solid" name="current_password" id="current_password"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<button id="kt_signin_submit" type="button" class="btn btn-primary me-2 px-6">
|
||||
@include('partials.general._button-indicator', ['label' => __('Update Email')])
|
||||
</button>
|
||||
<button id="kt_signin_cancel" type="button" class="btn btn-color-gray-400 btn-active-light-primary px-6">{{ __('Cancel') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Edit-->
|
||||
|
||||
<!--begin::Action-->
|
||||
<div id="kt_signin_email_button" class="ms-auto">
|
||||
<button class="btn btn-light btn-active-light-primary">{{ __('Change Email') }}</button>
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</div>
|
||||
<!--end::Email Address-->
|
||||
|
||||
<!--begin::Separator-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Separator-->
|
||||
|
||||
<!--begin::Password-->
|
||||
<div class="d-flex flex-wrap align-items-center mb-10">
|
||||
<!--begin::Label-->
|
||||
<div id="kt_signin_password">
|
||||
<div class="fs-6 fw-bolder mb-1">{{ __('Password') }}</div>
|
||||
<div class="fw-bold text-gray-600">************</div>
|
||||
</div>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Edit-->
|
||||
<div id="kt_signin_password_edit" class="flex-row-fluid d-none">
|
||||
<!--begin::Form-->
|
||||
<form id="kt_signin_change_password" class="form" novalidate="novalidate" method="POST" action="{{ route('settings.changePassword') }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<input type="hidden" name="current_email" value="{{ auth()->user()->email }} "/>
|
||||
<div class="row mb-1">
|
||||
<div class="col-lg-4">
|
||||
<div class="fv-row mb-0">
|
||||
<label for="current_password" class="form-label fs-6 fw-bolder mb-3">{{ __('Current Password') }}</label>
|
||||
<input type="password" class="form-control form-control-lg form-control-solid" name="current_password" id="current_password"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<div class="fv-row mb-0">
|
||||
<label for="password" class="form-label fs-6 fw-bolder mb-3">{{ __('New Password') }}</label>
|
||||
<input type="password" class="form-control form-control-lg form-control-solid" name="password" id="password"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<div class="fv-row mb-0">
|
||||
<label for="password_confirmation" class="form-label fs-6 fw-bolder mb-3">{{ __('Confirm New Password') }}</label>
|
||||
<input type="password" class="form-control form-control-lg form-control-solid" name="password_confirmation" id="password_confirmation"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-text mb-5">{{ __('Password must be at least 8 character and contain symbols') }}</div>
|
||||
|
||||
<div class="d-flex">
|
||||
<button id="kt_password_submit" type="button" class="btn btn-primary me-2 px-6">
|
||||
@include('partials.general._button-indicator', ['label' => __('Update Password')])
|
||||
</button>
|
||||
<button id="kt_password_cancel" type="button" class="btn btn-color-gray-400 btn-active-light-primary px-6">{{ __('Cancel') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Edit-->
|
||||
|
||||
<!--begin::Action-->
|
||||
<div id="kt_signin_password_button" class="ms-auto">
|
||||
<button class="btn btn-light btn-active-light-primary">{{ __('Reset Password') }}</button>
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</div>
|
||||
<!--end::Password-->
|
||||
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Sign-in Method-->
|
|
@ -0,0 +1,9 @@
|
|||
<x-base-layout>
|
||||
|
||||
{{ theme()->getView('pages/account/_navbar', array('class' => 'mb-5 mb-xl-10', 'info' => $info)) }}
|
||||
|
||||
{{ theme()->getView('pages/account/settings/_profile-details', array('class' => 'mb-5 mb-xl-10', 'info' => $info)) }}
|
||||
|
||||
{{ theme()->getView('pages/account/settings/_signin-method', array('class' => 'mb-5 mb-xl-10', 'info' => $info)) }}
|
||||
|
||||
</x-base-layout>
|
Loading…
Add table
Add a link
Reference in a new issue