@extends('backend.layouts.app') @section('title', @$data['title']) @section('content')
@include('backend.partials.user_navbar')
@if(url()->current() === route('user.edit.profile',[$data['id'],'official']))
{{ _trans('common.Official') }}
@csrf
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('department_id')) {{ $errors->first('department_id') }} @endif
@if ($errors->has('designation_id')) {{ $errors->first('designation_id') }} @endif
@if ($errors->has('joining_date')) {{ $errors->first('joining_date') }} @endif
@if ($errors->has('employee_type')) {{ $errors->first('employee_type') }} @endif
@if ($errors->has('employee_id')) {{ $errors->first('employee_id') }} @endif
@if ($errors->has('manager_id')) {{ $errors->first('manager_id') }} @endif
@if ($errors->has('grade')) {{ $errors->first('grade') }} @endif
@endif @if(url()->current() === route('user.edit.profile',[$data['id'],'personal']))
{{ _trans('common.Personal') }}
@csrf
@if ($errors->has('gender')) {{ $errors->first('gender') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('birth_date')) {{ $errors->first('birth_date') }} @endif
@if ($errors->has('address')) {{ $errors->first('address') }} @endif
@if ($errors->has('nationality')) {{ $errors->first('nationality') }} @endif
@if ($errors->has('nid_card_number')) {{ $errors->first('nid_card_number') }} @endif
@if ($errors->has('passport_number')) {{ $errors->first('passport_number') }} @endif
@if ($errors->has('blood_group')) {{ $errors->first('blood_group') }} @endif
@if ($errors->has('facebook_link')) {{ $errors->first('facebook_link') }} @endif
@if ($errors->has('linkedin_link')) {{ $errors->first('linkedin_link') }} @endif
@if ($errors->has('instagram_link')) {{ $errors->first('instagram_link') }} @endif
@endif @if(url()->current() === route('user.edit.profile',[$data['id'],'financial']))
{{ _trans('common.Financial') }}
@csrf
@if ($errors->has('tin')) {{ $errors->first('tin') }} @endif
@if ($errors->has('bank_name')) {{ $errors->first('bank_name') }} @endif
@if ($errors->has('bank_account')) {{ $errors->first('bank_account') }} @endif
@endif @if(url()->current() === route('user.edit.profile',[$data['id'],'salary']))
{{ _trans('common.Salary') }}
@csrf
@if ($errors->has('basic_salary')) {{ $errors->first('basic_salary') }} @endif

@endif @if(url()->current() === route('user.edit.profile',[$data['id'],'emergency']))
{{ _trans('common.Emergency') }}
@csrf
@if ($errors->has('emergency_name')) {{ $errors->first('emergency_name') }} @endif
@if ($errors->has('emergency_mobile_number')) {{ $errors->first('emergency_mobile_number') }} @endif
@if ($errors->has('emergency_mobile_relationship')) {{ $errors->first('emergency_mobile_relationship') }} @endif
@if(hasPermission('user_update')) @endif
@endif @if(url()->current() === route('user.edit.profile',[$data['id'],'security']))
{{ _trans('common.Security Info') }}
@csrf
{{-- error message --}} @if ($errors->has('old_password')) {{ $errors->first('old_password') }} @endif @if(session()->has('password_errors')) {{ session()->get('password_errors') }} @endif
{{-- session has --}}
{{-- error message --}} @if ($errors->has('password')) {{ $errors->first('password') }} @endif
{{-- error message --}} @if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@endif @if (url()->current() === route('user.edit.profile', [$data['id'], 'company']))
{{ _trans('common.Company Info') }}
@csrf
@if ($errors->has('company_info')) {{ $errors->first('company_info') }} @endif

@if ($errors->has('email')) {{ $errors->first('email') }} @endif

@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif

@if ($errors->has('total_employee')) {{ $errors->first('total_employee') }} @endif

@if ($errors->has('business_type')) {{ $errors->first('business_type') }} @endif

@if ($errors->has('trade_licence_number')) {{ $errors->first('trade_licence_number') }} @endif

@if(hasPermission('user_update')) @endif
@endif
@endsection @section('script') @endsection