@extends('main.main_back') @section('style-up') @endsection @section('title') Salaire @endsection @section('pagination') Salaire @endsection @section('content')
Liste
@php $agencyId = request()->get('agency'); $currentMonth = strtolower(date('F')); @endphp
@isset($data)

Liste des Employés

{{-- --}} @isset($data) @php //dd($data); @endphp @foreach($data as $key => $value) @php $value_id = $value->id; $employee_id = $value_id; $gender = $value->em_gender; $name = $value->em_name; $phone = $value->em_phone; $salary = $value->em_salary; $agency = isset($value->agency) ? $value->agency->ag_name : ""; $post = isset($value->post) ? $value->post->po_name : "" ; $date_reg = $value->created_at; $ration = $value->em_ration; $amount_pay = getSalaryMonth($currentMonth,$employee_id); $account_salary = $salary - $amount_pay; $no_days = 30; $base = getAmountBase($no_days,$salary); @endphp {{-- --}} @endforeach @endisset
No
Nom complet Poste Salaire Agence Actions
{{ $key+1 }}
{{ $name }}
{{ $phone }}
{{ $gender }}
{{ $post }} {{ convert_amount($salary) }} {{ $agency }}
@if(count($data) > 0)
@php $months = getMonths(); //dd($salary); @endphp
@endif
@endisset @endsection @section("script-up") @endsection @section("script-down") {{-- --}} @endsection