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
172
resources/views/pages/account/_navbar.blade.php
Normal file
172
resources/views/pages/account/_navbar.blade.php
Normal file
|
@ -0,0 +1,172 @@
|
|||
@php
|
||||
$nav = array(
|
||||
array('title' => 'Overview', 'view' => 'account/overview'),
|
||||
array('title' => 'Settings', 'view' => 'account/settings'),
|
||||
// array('title' => 'Security', 'view' => ''),
|
||||
);
|
||||
@endphp
|
||||
|
||||
<!--begin::Navbar-->
|
||||
<div class="card {{ $class }}">
|
||||
<div class="card-body pt-9 pb-0">
|
||||
<!--begin::Details-->
|
||||
<div class="d-flex flex-wrap flex-sm-nowrap mb-3">
|
||||
<!--begin: Pic-->
|
||||
<div class="me-7 mb-4">
|
||||
<div class="symbol symbol-100px symbol-lg-160px symbol-fixed position-relative">
|
||||
<img src="{{ auth()->user()->avatar_url }}" alt="image"/>
|
||||
<div class="position-absolute translate-middle bottom-0 start-100 mb-6 bg-success rounded-circle border border-4 border-white h-20px w-20px"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Pic-->
|
||||
|
||||
<!--begin::Info-->
|
||||
<div class="flex-grow-1">
|
||||
<!--begin::Title-->
|
||||
<div class="d-flex justify-content-between align-items-start flex-wrap mb-2">
|
||||
<!--begin::User-->
|
||||
<div class="d-flex flex-column">
|
||||
<!--begin::Name-->
|
||||
<div class="d-flex align-items-center mb-2">
|
||||
<a href="#" class="text-gray-800 text-hover-primary fs-2 fw-bolder me-1">{{ auth()->user()->username }}</a>
|
||||
<a href="#">
|
||||
{!! theme()->getSvgIcon("icons/duotune/general/gen026.svg", "svg-icon-1 svg-icon-primary") !!}
|
||||
</a>
|
||||
|
||||
<a href="#" class="btn btn-sm btn-light-success fw-bolder ms-2 fs-8 py-1 px-3" data-bs-toggle="modal" data-bs-target="#kt_modal_upgrade_plan">{{ __('Upgrade to Pro') }}</a>
|
||||
</div>
|
||||
<!--end::Name-->
|
||||
|
||||
<!--begin::Info-->
|
||||
<div class="d-flex flex-wrap fw-bold fs-6 mb-4 pe-2">
|
||||
<a href="#" class="d-flex align-items-center text-gray-400 text-hover-primary me-5 mb-2">
|
||||
{!! theme()->getSvgIcon("icons/duotune/communication/com006.svg", "svg-icon-4 me-1") !!}
|
||||
Developer
|
||||
</a>
|
||||
<a href="#" class="d-flex align-items-center text-gray-400 text-hover-primary me-5 mb-2">
|
||||
{!! theme()->getSvgIcon("icons/duotune/general/gen018.svg", "svg-icon-4 me-1") !!}
|
||||
SF, Bay Area
|
||||
</a>
|
||||
<a href="#" class="d-flex align-items-center text-gray-400 text-hover-primary mb-2">
|
||||
{!! theme()->getSvgIcon("icons/duotune/communication/com011.svg", "svg-icon-4 me-1") !!}
|
||||
{{ auth()->user()->email }}
|
||||
</a>
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
<!--end::User-->
|
||||
|
||||
<!--begin::Actions-->
|
||||
<div class="d-flex my-4">
|
||||
<a href="#" class="btn btn-sm btn-light me-2" id="kt_user_follow_button">
|
||||
{!! theme()->getSvgIcon("icons/duotune/arrows/arr012.svg", "svg-icon-3 d-none") !!}
|
||||
{{ theme()->getView('partials/general/_button-indicator', array('label' => 'Follow')) }}
|
||||
</a>
|
||||
|
||||
<a href="#" class="btn btn-sm btn-primary me-3" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-trigger="hover" title="Coming soon">Hire Me</a>
|
||||
|
||||
<!--begin::Menu-->
|
||||
<div class="me-0">
|
||||
<button class="btn btn-sm btn-icon btn-bg-light btn-active-color-primary" data-kt-menu-trigger="click" data-kt-menu-placement="bottom-end">
|
||||
<i class="bi bi-three-dots fs-3"></i>
|
||||
</button>
|
||||
{{ theme()->getView('partials/menus/_menu-3') }}
|
||||
</div>
|
||||
<!--end::Menu-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
</div>
|
||||
<!--end::Title-->
|
||||
|
||||
<!--begin::Stats-->
|
||||
<div class="d-flex flex-wrap flex-stack">
|
||||
<!--begin::Wrapper-->
|
||||
<div class="d-flex flex-column flex-grow-1 pe-8">
|
||||
<!--begin::Stats-->
|
||||
<div class="d-flex flex-wrap">
|
||||
<!--begin::Stat-->
|
||||
<div class="border border-gray-300 border-dashed rounded min-w-125px py-3 px-4 me-6 mb-3">
|
||||
<!--begin::Number-->
|
||||
<div class="d-flex align-items-center">
|
||||
{!! theme()->getSvgIcon("icons/duotune/arrows/arr066.svg", "svg-icon-3 svg-icon-success me-2") !!}
|
||||
<div class="fs-2 fw-bolder" data-kt-countup="true" data-kt-countup-value="4500" data-kt-countup-prefix="$">0</div>
|
||||
</div>
|
||||
<!--end::Number-->
|
||||
|
||||
<!--begin::Label-->
|
||||
<div class="fw-bold fs-6 text-gray-400">{{ __('Earnings') }}</div>
|
||||
<!--end::Label-->
|
||||
</div>
|
||||
<!--end::Stat-->
|
||||
|
||||
<!--begin::Stat-->
|
||||
<div class="border border-gray-300 border-dashed rounded min-w-125px py-3 px-4 me-6 mb-3">
|
||||
<!--begin::Number-->
|
||||
<div class="d-flex align-items-center">
|
||||
{!! theme()->getSvgIcon("icons/duotune/arrows/arr065.svg", "svg-icon-3 svg-icon-danger me-2") !!}
|
||||
<div class="fs-2 fw-bolder" data-kt-countup="true" data-kt-countup-value="75">0</div>
|
||||
</div>
|
||||
<!--end::Number-->
|
||||
|
||||
<!--begin::Label-->
|
||||
<div class="fw-bold fs-6 text-gray-400">{{ __('Projects') }}</div>
|
||||
<!--end::Label-->
|
||||
</div>
|
||||
<!--end::Stat-->
|
||||
|
||||
<!--begin::Stat-->
|
||||
<div class="border border-gray-300 border-dashed rounded min-w-125px py-3 px-4 me-6 mb-3">
|
||||
<!--begin::Number-->
|
||||
<div class="d-flex align-items-center">
|
||||
{!! theme()->getSvgIcon("icons/duotune/arrows/arr066.svg", "svg-icon-3 svg-icon-success me-2") !!}
|
||||
<div class="fs-2 fw-bolder" data-kt-countup="true" data-kt-countup-value="60" data-kt-countup-prefix="%">0</div>
|
||||
</div>
|
||||
<!--end::Number-->
|
||||
|
||||
<!--begin::Label-->
|
||||
<div class="fw-bold fs-6 text-gray-400">{{ __('Success Rate') }}</div>
|
||||
<!--end::Label-->
|
||||
</div>
|
||||
<!--end::Stat-->
|
||||
</div>
|
||||
<!--end::Stats-->
|
||||
</div>
|
||||
<!--end::Wrapper-->
|
||||
|
||||
<!--begin::Progress-->
|
||||
<div class="d-flex align-items-center w-200px w-sm-300px flex-column mt-3">
|
||||
<div class="d-flex justify-content-between w-100 mt-auto mb-2">
|
||||
<span class="fw-bold fs-6 text-gray-400">{{ __('Profile Completion') }}</span>
|
||||
<span class="fw-bolder fs-6">50%</span>
|
||||
</div>
|
||||
|
||||
<div class="h-5px mx-3 w-100 bg-light mb-3">
|
||||
<div class="bg-success rounded h-5px" role="progressbar" style="width: 50%;" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Progress-->
|
||||
</div>
|
||||
<!--end::Stats-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
<!--end::Details-->
|
||||
|
||||
<!--begin::Navs-->
|
||||
<div class="d-flex overflow-auto h-55px">
|
||||
<ul class="nav nav-stretch nav-line-tabs nav-line-tabs-2x border-transparent fs-5 fw-bolder flex-nowrap">
|
||||
@foreach($nav as $each)
|
||||
<!--begin::Nav item-->
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-active-primary me-6 {{ theme()->getPagePath() === $each['view'] ? 'active' : '' }}" href="{{ $each['view'] ? theme()->getPageUrl($each['view']) : '#' }}">
|
||||
{{ $each['title'] }}
|
||||
</a>
|
||||
</li>
|
||||
<!--end::Nav item-->
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<!--begin::Navs-->
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Navbar-->
|
134
resources/views/pages/account/overview/_details.blade.php
Normal file
134
resources/views/pages/account/overview/_details.blade.php
Normal file
|
@ -0,0 +1,134 @@
|
|||
<!--begin::details View-->
|
||||
<div class="card mb-5 mb-xl-10" id="kt_profile_details_view">
|
||||
<!--begin::Card header-->
|
||||
<div class="card-header cursor-pointer">
|
||||
<!--begin::Card title-->
|
||||
<div class="card-title m-0">
|
||||
<h3 class="fw-bolder m-0">{{ __('Profile Details') }}</h3>
|
||||
</div>
|
||||
<!--end::Card title-->
|
||||
|
||||
<!--begin::Action-->
|
||||
<a href="{{ theme()->getPageUrl('account/settings') }}" class="btn btn-primary align-self-center">{{ __('Edit Profile') }}</a>
|
||||
<!--end::Action-->
|
||||
</div>
|
||||
<!--begin::Card header-->
|
||||
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body p-9">
|
||||
<!--begin::Row-->
|
||||
<div class="row mb-7">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 fw-bold text-muted">{{ __('Full Name') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8">
|
||||
<span class="fw-bolder fs-6 text-dark">{{ auth()->user()->name }}</span>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Row-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-7">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 fw-bold text-muted">{{ __('Company') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<span class="fw-bold fs-6">{{ $info->company }}</span>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-7">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 fw-bold text-muted">
|
||||
{{ __('Contact Phone') }}
|
||||
<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 d-flex align-items-center">
|
||||
<span class="fw-bolder fs-6 me-2">{{ $info->phone }}</span>
|
||||
|
||||
@if($info->phone)
|
||||
<span class="badge badge-success">{{ __('Verified') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-7">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 fw-bold text-muted">{{ __('Website') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8">
|
||||
<a href="#" class="fw-bold fs-6 text-dark text-hover-primary">{{ $info->website }}</a>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-7">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 fw-bold text-muted">
|
||||
{{ __('Country') }}
|
||||
<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">
|
||||
<span class="fw-bolder fs-6 text-dark">
|
||||
{{ $info->country ? collect(\App\Core\Data::getCountriesList())->get($info->country)['name'] : '-' }}
|
||||
</span>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-7">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 fw-bold text-muted">{{ __('Communication') }}</label>
|
||||
<!--end::Label-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8">
|
||||
<span class="fw-bolder fs-6 text-dark">
|
||||
{{ implode(', ', array_map('ucwords', array_keys(array_filter($info->communication ?? []) ?? []))) }}
|
||||
</span>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<!--begin::Input group-->
|
||||
<div class="row mb-10">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 fw-bold text-muted">{{ __('Allow Changes') }}</label>
|
||||
<!--begin::Label-->
|
||||
|
||||
<!--begin::Label-->
|
||||
<div class="col-lg-8">
|
||||
<span class="fw-bold fs-6">{{ __('Yes') }}</span>
|
||||
</div>
|
||||
<!--begin::Label-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
</div>
|
||||
<!--end::details View-->
|
39
resources/views/pages/account/overview/overview.blade.php
Normal file
39
resources/views/pages/account/overview/overview.blade.php
Normal file
|
@ -0,0 +1,39 @@
|
|||
<x-base-layout>
|
||||
|
||||
{{ theme()->getView('pages/account/_navbar', array('class' => 'mb-5 mb-xl-10')) }}
|
||||
|
||||
{{ theme()->getView('pages/account/overview/_details', array('class' => 'mb-5 mb-xl-10', 'info' => auth()->user()->info)) }}
|
||||
|
||||
<!--begin::Row-->
|
||||
<div class="row gy-10 gx-xl-10">
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
{{ theme()->getView('partials/widgets/charts/_widget-1', array('class' => 'card-xxl-stretch mb-5 mb-xl-10')) }}
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
{{ theme()->getView('partials/widgets/tables/_widget-1', array('class' => 'card-xxl-stretch mb-5 mb-xl-10')) }}
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Row-->
|
||||
|
||||
<!--begin::Row-->
|
||||
<div class="row gy-10 gx-xl-10">
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
{{ theme()->getView('partials/widgets/lists/_widget-5', array('class' => 'card-xxl-stretch mb-5 mb-xl-10')) }}
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
{{ theme()->getView('partials/widgets/tables/_widget-5', array('class' => 'card-xxl-stretch mb-5 mb-xl-10')) }}
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Row-->
|
||||
|
||||
</x-base-layout>
|
|
@ -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