@extends('layouts.main') @section('title', 'Dashboard Andalan') @section('css') @php $dashboardCssPath = public_path('assets/css/dashboard.css'); $dashboardCssVersion = file_exists($dashboardCssPath) ? filemtime($dashboardCssPath) : time(); @endphp @endsection @section('navbarTitle', 'Edit Profile') @section('content') @include('layouts.breadcrumb', [ 'title' => 'Profile', 'current' => 'Profile', 'homeRoute' => 'dashboard', ]) @php $isPasswordTabActive = session()->has('password_status') || $errors->passwordUpdate->any(); @endphp
{{ $profilePageDisplayName }}
{{ $profilePagePositionName }}
  • Employee ID{{ $profilePageEmployeeCode }}
  • Department{{ $profilePageDepartmentName }}
  • Join Date{{ $profilePageJoinDateLabel }}
Account Setup
@csrf @method('PATCH')
@include('partials.swal-alert', ['type' => 'success', 'message' => session('profile_status')]) @if ($errors->any()) @include('partials.swal-alert', ['type' => 'error', 'message' => implode("\n", $errors->all())]) @endif @php $profileNameValue = old('name', $profileFormName === '-' ? '' : $profileFormName); $profileGenderValue = old('gender', $profileFormGender === '-' ? '' : $profileFormGender); $profileMaritalStatusValue = old('marital_status', $profileFormMaritalStatus === '-' ? '' : $profileFormMaritalStatus); $profileBirthValue = old('birth', $profileFormBirthValue); $profileBirthDisplayValue = preg_match('/^\d{4}-\d{2}-\d{2}$/', (string) $profileBirthValue) ? substr((string) $profileBirthValue, 8, 2) . '/' . substr((string) $profileBirthValue, 5, 2) . '/' . substr((string) $profileBirthValue, 0, 4) : ''; $profilePhoneValue = old('phone', $profileFormPhone === '-' ? '' : $profileFormPhone); $profileEmailValue = old('email', $profileFormEmail === '-' ? '' : $profileFormEmail); $profileAddressValue = old('address', $profileFormAddress === '-' ? '' : $profileFormAddress); @endphp
@csrf @method('PATCH')
@include('partials.swal-alert', ['type' => 'success', 'message' => session('password_status')]) @if ($errors->passwordUpdate->any()) @include('partials.swal-alert', ['type' => 'error', 'message' => implode("\n", $errors->passwordUpdate->all())]) @endif
@endsection @section('script') @endsection