114 lines
4.5 KiB
PHP
114 lines
4.5 KiB
PHP
|
|
@extends('layouts.master')
|
||
|
|
|
||
|
|
@section('pageTitle', __('Profile'))
|
||
|
|
@section('content')
|
||
|
|
|
||
|
|
<div class="page-header">
|
||
|
|
<h1 class="page-title">{{ __('Profile') }}</h1>
|
||
|
|
<ol class="breadcrumb">
|
||
|
|
<li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Dashboard') }}</a></li>
|
||
|
|
<li class="breadcrumb-item active">{{ __('Profile') }}</li>
|
||
|
|
</ol>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<div class="page-content container-fluid ">
|
||
|
|
<div class="row">
|
||
|
|
<!-- RIGHT Column -->
|
||
|
|
<div class="col-lg-12 col-xl-9 order-xl-2">
|
||
|
|
<div class="user-background card card-shadow">
|
||
|
|
<div class="card-header card-header-transparent p-20">
|
||
|
|
<h4 class="card-title mb-0">{{ __('Profile Details') }}</h4>
|
||
|
|
</div>
|
||
|
|
<div class="card-block">
|
||
|
|
@if($errors->any())
|
||
|
|
<div class="alert alert-danger">
|
||
|
|
@foreach($errors->all() as $error)
|
||
|
|
<p>{{ $error }}</p>
|
||
|
|
@endforeach
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<div class="row">
|
||
|
|
<div class="form-group col-md-6">
|
||
|
|
<label class="form-control-label" for="first_name"><b>{{ __('First Name') }}</b></label>
|
||
|
|
</br>{{ $user->first_name }}
|
||
|
|
</div>
|
||
|
|
<div class="form-group col-md-6">
|
||
|
|
<label class="form-control-label" for="last_name"><b>{{ __('Last Name') }}</b></label>
|
||
|
|
</br>{{ $user->last_name }}
|
||
|
|
</div>
|
||
|
|
<div class="form-group col-md-6">
|
||
|
|
<label class="form-control-label" for=""><b>{{ __('Username') }}</b></label>
|
||
|
|
</br>{{ $user->username }}
|
||
|
|
</div>
|
||
|
|
<div class="form-group col-md-6">
|
||
|
|
<label class="form-control-label" for="email_address"><b>{{ __('Email Address') }}</b></label>
|
||
|
|
</br>{{ $user->email }}
|
||
|
|
</div>
|
||
|
|
<div class="form-group col-md-6">
|
||
|
|
<label class="form-control-label"><b>{{ __('Role') }}</b></label>
|
||
|
|
</br>{{ dataTranslation($user->role_name) }}
|
||
|
|
</div>
|
||
|
|
<div class="form-group select2-primary col-md-6">
|
||
|
|
<label class="form-control-label" for="user_language"><b>{{ __('Language') }}</b></label>
|
||
|
|
@php
|
||
|
|
$ulang=$languages->where('short_name',$user->user_language)->first();
|
||
|
|
@endphp
|
||
|
|
</br>{{ $ulang->name }}
|
||
|
|
</div>
|
||
|
|
<div class="form-group col-md-6">
|
||
|
|
<label class="form-control-label" for="cell_phone_number"><b>{{ __('Cell Phone Number') }}</b></label>
|
||
|
|
</br>{{ $user->cell_phone_number }}
|
||
|
|
</div>
|
||
|
|
<div class="form-group col-md-6">
|
||
|
|
<label class="form-control-label" for="home_address"><b>{{ __('Home Address') }}</b></label>
|
||
|
|
</br><?php echo nl2br($user->home_address);?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- RIGHT Column -->
|
||
|
|
|
||
|
|
<!-- LEFT COLUMN -->
|
||
|
|
<div class="col-lg-6 col-xl-3 order-xl-1">
|
||
|
|
<div class="user-info card card-shadow text-center">
|
||
|
|
<div class="user-base card-block">
|
||
|
|
@if($user->profile_picture && trim($user->profile_picture)!='' && file_exists(public_path('uploads/user_folder/'.$user->profile_picture)))
|
||
|
|
<a class="avatar img-bordered avatar-100" href="javascript:void(0)">
|
||
|
|
<img src='{{asset(env("UPLOADS_FOLDER") . "/" . env("USER_FOLDER") . "/" . $user->profile_picture)}}' alt="Profile Picture" id="profile_picture_preview">
|
||
|
|
</a>
|
||
|
|
@else
|
||
|
|
<a class="avatar img-bordered avatar-100" href="javascript:void(0)">
|
||
|
|
<img src="{{asset('global/portraits/5.jpg')}}" alt="..." id="profile_picture_preview">
|
||
|
|
</a>
|
||
|
|
@endif
|
||
|
|
<h4 class="user-name">{{ $user->first_name }} {{ $user->last_name }}</h4>
|
||
|
|
@php
|
||
|
|
$user_department=App\Department::where('id', $user->department_id)->first();
|
||
|
|
@endphp
|
||
|
|
@if(isset($user->role_name))
|
||
|
|
<p class="user-job">
|
||
|
|
<button type="button" class="btn btn-warning"><i class="icon wb-user-circle" aria-hidden="true"></i> <b>{{ dataTranslation($user->role_name) }}</b></button>
|
||
|
|
</p>
|
||
|
|
@endif
|
||
|
|
@if(isset($user_department) && $user_department->name)
|
||
|
|
<p class="user-job">
|
||
|
|
<button type="button" class="btn btn-info"><i class="icon wb-briefcase" aria-hidden="true"></i> <b>{{ dataTranslation($user_department->name) }}</b></button>
|
||
|
|
</p>
|
||
|
|
@endif
|
||
|
|
<p class="user-location"><?php echo nl2br($user->home_address);?></p>
|
||
|
|
<p class="user-location">{{ $user->cell_phone_number }}</p>
|
||
|
|
<p class="user-location">{{ $user->email }}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- LEFT COLUMN -->
|
||
|
|
<script>
|
||
|
|
$('.page').removeClass('ecommerce_dashboard').addClass('page-profile-v2');
|
||
|
|
</script>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@endsection
|
||
|
|
|