@extends('main.main_back') @php if($item){ $value_id = $item->id; $employee_id = $item->id; $user_id = $item->user_id; $matricule = $item->em_matricule; $gender = $item->em_gender; $name = $item->em_name; $phone = $item->em_phone; $address = $item->em_address; $birth = $item->em_birth; $birth_place = $item->em_place_birth; $salary = $item->em_salary; $no_account = $item->no_account_bank; $key_account = $item->key_account_bank; $doc = $item->em_doc; $num_doc = $item->em_num_doc; $status = $item->em_status; $agency = isset($item->agency) ? $item->agency->ag_name : ""; $admin = nameUser($item->user_id) ?? ""; $post = isset($item->post) ? $item->post->po_name : "" ; $date_reg = $item->created_at; $image_doc = $item->em_image_doc; $doc_date_exp = $item->em_doc_date_exp; $libelle = isset($item->folder) ? $item->folder->label : null; $file = isset($item->folder) ? $item->folder->file : null; $documents = isset($item->documents) ? $item->documents : []; $loans = isset($item->loans) ? $item->loans : []; $salariesPay = isset($item->salariesPay) ? $item->salariesPay : []; $role_id = roleId($user_id); $role = $item->user->role ?? null; $no_intern = $item->em_no_intern; $no_nui = $item->em_nui; $no_cnps = $item->em_no_cnps; $service = $item->em_service; $ration = $item->em_ration; } @endphp @section('style-up') @endsection @section('title') Informations de {{ $name }} @endsection @section('pagination') {{ $name }} @endsection @section('content')
Liste

{{ $name }}

{{ $phone }}

{{ $gender }}

{{ $address }}

{{ convert_amount($salary) }}

{{ $post }}

Details des Informations

Sexe :
{{ $gender }}
Matricule :
{{ $matricule }}
Nom Complet :
{{ $name }}
N° Téléphone :
{{ $phone }}
Date de Naiss... :
{{ $birth }}
Lieu de Naiss... :
{{ $birth_place }}
Adresse :
{{ $address }}
Poste :
{{ $post }}
No Compte :
{{ $no_account }}
Clé Compte :
{{ $key_account }}
No Interne :
{{ $no_intern }}
NUI :
{{ $no_nui }}
No Cnps :
{{ $no_cnps }}
Ration :
{{ $ration }}
Service :
{{ $service }}
Agence :
{{ $agency }}
Document :
{{ $doc }}
No Document :
{{ $num_doc }}
Date d'expiration :
{{ $doc_date_exp }}
Libelle Dossier :
{{ $libelle }} Fichier
Enregistré le :
{{ $date_reg }}
Aperçu Doc... :
@if (!is_null($image_doc)) Image Preview @else Aucune Aperçu @endif

HistoriQues salariales

@php $months = getMonths(); $currentMonth = strtolower(date('F')); $amount_pay = getSalaryMonth($currentMonth,$employee_id); $account_salary = $salary - $amount_pay; $no_days = 30; $base = getAmountBase($no_days,$salary); //dd($salary); @endphp
@isset($salariesPay) @foreach($salariesPay as $key => $value) @php $value_id = $value->id; $code = $value->code; $month = $value->month; $month_name_fr = getFrenchMonthName($month); $mode = $value->mode_pay; $pay_days = $value->pay_days; $year = $value->year; $advance = $value->advance; $ration = $value->ration_pay; $date_reg = $value->created_at; $admin = nameUser($value->user_id); @endphp @endforeach @endisset
No code Mode Montant Mois Admin Date Reg Actions
{{ $key+1 }} {{ $code }} {{ $mode }} {{ convert_amount_v2($pay_days) }} {{ $month_name_fr }} / {{ $year }} {{ $admin }} {{ $date_reg }}

Prêts

@isset($loans) @foreach($loans as $key => $value) @php $value_id = $value->id; $reason = $value->reason; $amount = $value->amount; $balance = $value->balance; $installment = $value->installment; $status = $value->status_loan; $status_salary = $value->salary; $date_reg = $value->created_at; $admin = nameUser($value->user_id); $loanPayment = isset($value->loanPayment) ? $value->loanPayment : null; @endphp @endforeach @endisset
No Raison Montant Reste Tranche Lien au salaire ? Remboursé ? Admin Date Reg Actions
{{ $key+1 }} {{ $reason }} {{ convert_amount_v2($amount) }} {{ convert_amount_v2($balance) }} {{ $installment }} @if ($status_salary == 1) Oui @else Non @endif @if($status_salary == 0) @if ($status == 1) Oui @else Non @endif @else Ras @endif {{ $admin }} {{ $date_reg }}
@if(!is_null($user_id))

Attribuer les permissions de l'application: {{ $role->name ?? null }}

permissions->count() ? 'checked' : '' }}/>
@isset($permissions) @foreach($permissions as $key => $value) @php $value_id = $value->id; $label = $value->name; $checked = $role->hasPermissionTo($label); @endphp
@endforeach @endisset
@endif

Documents

Ajouter
@isset($documents) @foreach($documents as $key => $value) @php $value_id = $value->id; $label = $value->label; $document = $value->document; $date_reg = $value->created_at; $admin = nameUser($value->user_id); @endphp @endforeach @endisset
No Libelle Documents Admin Date Reg Actions
{{ $key+1 }} {{ $label }} document {{ $admin }} {{ $date_reg }} Supprimer

Modification des informations de {{ $name }}

em_gender == "MASCULIN" ? "checked" : "" }}>
em_gender == "FEMININ" ? "checked" : "" }}>
user_id) ? "checked" : "" }}>
user_id) ? "checked" : "" }}>
@if (!is_null($item->em_image_doc)) Image Preview @else @endif
@endsection @section("script-up") @endsection @section("script-down") @endsection