#5135 emlak24 new project

This commit is contained in:
diashalabi 2022-01-25 16:58:07 +03:00
parent ed55fde460
commit 048a67bc50
5 changed files with 42 additions and 8 deletions

View File

@ -100,7 +100,7 @@
}
input {
border-radius: 4px;
border-radius: 0;
font-size: 13px;
border: 1px solid #E5E5E5;
@media (max-width: 992px) {
@ -112,7 +112,6 @@
.account--disable--content {
width: 80%;
height: 58px;
background-color: #f3f5f6;
border-radius: 20px;
margin-top: 50px;
@ -123,9 +122,10 @@
height: auto;
}
button {
button, a {
font-size: 14px;
height: 34px;
white-space: nowrap;
border-radius: 13px;
}
}

View File

@ -2,7 +2,7 @@
<img src="{{ img('visiosoft.module.profile::images/nav-menu.svg').url }}" alt="nav icon" id="navbarSideButton"
class="ml-2">
</div>
<div class="col-10 col-sm-6 col-md-3 profile-navigation border rounded navbar-side" id="navbarSide">
<div class="col-10 col-sm-6 col-md-3 profile-navigation border navbar-side" id="navbarSide">
<span class="px-3 mb-2 link-unstyled">
{{ img('visiosoft.module.profile::images/interface.svg').data|raw }}
<p>

View File

@ -47,20 +47,20 @@
<div class="mt-4">
<div class="profile--form--area">
<div class="form-group">
<label class="control-label font-weight-bold">
<label class="control-label mb-1">
{{ trans("visiosoft.module.profile::field.first_name.name") }}
</label>
{{ userForm.fields.first_name.input|raw }}
</div>
<div class="form-group">
<label class="control-label font-weight-bold">
<label class="control-label mb-1">
{{ trans("visiosoft.module.profile::field.last_name.name") }}
</label>
{{ userForm.fields.last_name.input|raw }}
</div>
<div class="form-group">
<label class="control-label font-weight-bold">
<label class="control-label mb-1">
{{ trans("visiosoft.module.profile::field.email.name") }}
</label>
{{ userForm.fields.email.input|raw }}

View File

@ -0,0 +1,27 @@
<?php namespace Visiosoft\ProfileModule\Profile\Command;
use Illuminate\Foundation\Bus\DispatchesJobs;
class UserInitials
{
use DispatchesJobs;
protected $user;
public function __construct($user)
{
$this->user = $user;
}
public function handle()
{
$words = explode(" ", $this->user->name());
$acronym = "";
foreach ($words as $w) {
$acronym .= $w[0];
}
return $acronym;
}
}

View File

@ -5,6 +5,7 @@ use Visiosoft\ProfileModule\Adress\Command\GetAddress;
use Visiosoft\ProfileModule\Adress\Command\GetAddressByUser;
use Visiosoft\ProfileModule\Profile\Command\GetProfileDetail;
use Visiosoft\ProfileModule\Profile\Command\GetProfilePhotoURL;
use Visiosoft\ProfileModule\Profile\Command\UserInitials;
class ProfileModulePlugin extends Plugin
{
@ -50,6 +51,12 @@ class ProfileModulePlugin extends Plugin
return $this->dispatch(new GetProfilePhotoURL($user));
}
),
new \Twig_SimpleFunction(
'user_initials',
function ($user) {
return $this->dispatch(new UserInitials($user));
}
),
];
}
}