@extends('home.partial.layout') @php use Carbon\Carbon; @endphp @section('content')

Add Monthly Earnings

@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@foreach($employees as $employee) @endforeach
Emp
Name
Emp ID Month Department Additional
Reason
Additional
Amount
Remarks Action

{{$employee->name}}{{$employee->lname}}@if($employee->designations){{$employee->designations->name}}@else @endif

{{$employee->employee_no}} @if ($employee->employeeEarnings) {{ $employee->employeeEarnings->month_year }} @else @endif {{ $employee->employeeDepartment->name }} @if ($employee->employeeEarnings) @foreach(json_decode($employee->employeeEarnings->additional_reason) as $reason) {{$reason}}
@endforeach @else 0 @endif
@if ($employee->employeeEarnings) {{ $employee->employeeEarnings->total_addtional_amount }} @else 0 @endif @if ($employee->employeeEarnings) {{ $employee->employeeEarnings->remarks }} @else @endif @if ($employee->employeeEarnings) @else @endif
@endsection