@extends('dashboard.layouts.index') @section('page_title') @lang('global.employee') @stop @section('breadcrumb') @stop @section('content') {{-- @dd($model2) --}}
id)}}" novalidate method="POST"> @csrf

@lang('global.avatar')

@component('dashboard.components.edit_image' , ['avatar' => $model->avatar]) @endcomponent

@lang("global.user_information")

@component('dashboard.components.edit_text' , [ "name" => "workplaces", "type" => "text", "title" => __("global.workplace"), "col" => "col-md-10", "value"=>$model2?$model2->workplace:'' ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "educational_level", "type" => "text", "title" => __("global.educational_level"), "col" => "col-md-10", "value"=>$model2?$model2->educational_level:'' ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "job_title", "type" => "text", "title" => __("global.job_title"), "col" => "col-md-10", "value"=>$model2?$model2->job_title:'' ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "passport_number", "type" => "text", "title" => __("global.passport_number"), "col" => "col-md-10", "value"=>$model2?$model2->passport_number:'' ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "start_date", "type" => "date", "title" => __("global.start_date"), "col" => "col-md-10", "value"=>$model2 ?Carbon\Carbon::parse($model2->start_date)->format('Y-m-d'):'' ]) @endcomponent {{-- @component('dashboard.components.edit_text' , [ "name" => "start_date", "type" => "date", "title" => __("global.start_date"), "col" => "col-md-10", "value"=>$model2 ? $model2->start_date:'' ]) @endcomponent --}} @component('dashboard.components.edit_text' , [ "name" => "date_of_birth", "type" => "date", "title" => __("global.date_of_birth"), "col" => "col-md-10", "value"=>$model2?$model2->date_of_birth:'' ]) @endcomponent

@lang("global.informationemployee")

@component('dashboard.components.edit_text' , [ "name" => "name", "type" => "text", "title" => __("global.name"), "col" => "col-md-10", "value"=>$model->name ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "phone_number", "type" => "text", "title" => __("global.phone_number"), "col" => "col-md-10", "value"=>$model->phone_number ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "email", "type" => "email", "title" => __("global.email"), "col" => "col-md-10", "value"=>$model->email ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "password", "type" => "password", "title" => __("global.password"), "col" => "col-md-10", ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "national", "type" => "text", "title" => __("global.nationality"), "col" => "col-md-10", "value"=>$model->national ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "address", "type" => "text", "title" => __("global.address"), "col" => "col-md-10", "value"=>$model->address ]) @endcomponent @php $debartment= App\Models\User::role(App\Models\User::HEAD_OF_DEPARTMENT)->where('company_id' , Auth::id())->get(); @endphp
{{-- @component('dashboard.components.edit_drobdrown_title' , [ "name" => "lip_id", "type" => "text", "title" => __("global.lip"), "col" => "col-md-10", "model"=>$model3 ]) @endcomponent --}} @component('dashboard.components.edit_text' , [ "name" => "age", "type" => "number", "title" => __("global.age"), "col" => "col-md-10", "value"=>$model->age ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "residence_number", "type" => "text", "title" => __("global.residence_number"), "col" => "col-md-10", "value"=>$model2?$model2->residence_number:'' ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "expired_residence_number", "type" => "date", "title" => __("global.expired_residence_number"), "col" => "col-md-10", "value"=>$model2?Carbon\Carbon::parse($model2->expired_residence_number)->format('Y-m-d'):'' ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "expired_passport", "type" => "date", "title" => __("global.expired_passport"), "col" => "col-md-10", "value"=>$model2?Carbon\Carbon::parse($model2->expired_passport)->format('Y-m-d'):'' ]) @endcomponent

@lang("global.payrollinformation")

@component('dashboard.components.edit_text' , [ "name" => "amount", "type" => "text", "title" => __("global.amount"), "col" => "col-md-10", "value"=>$model4?$model4->amount:0 ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "num_socialsecurity", "type" => "text", "title" => __("global.num_socialsecurity"), "col" => "col-md-10", "value"=>$model4?$model4->num_socialsecurity:0 ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "note", "type" => "text", "title" => __("global.note"), "col" => "col-md-10", "value"=>$model4?$model4->note:'' ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "ipan", "type" => "text", "title" => __("global.ipan"), "col" => "col-md-10", "value"=>$model4?$model4->ipan:0 ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "socialsecurity", "type" => "text", "title" => __("global.socialsecurity"), "col" => "col-md-10", "value"=>$model4?$model4->socialsecurity:0 ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "tax", "type" => "text", "title" => __("global.tax"), "col" => "col-md-10", "value"=>$model4?$model4->tax:0 ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "other_allowances", "type" => "text", "title" => __("global.othersuits"), "col" => "col-md-10", "value"=>$model4?$model4->other_allowances:0 ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "bank_name", "type" => "text", "title" => __("global.bank_name"), "col" => "col-md-10", "value"=>$model4?$model4->bank_name:0 ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "health_insurance", "type" => "text", "title" => __("global.health_insurance"), "col" => "col-md-10", "value"=>$model4?$model4->health_insurance:0 ]) @endcomponent
@stop