@extends('layouts.master') @section('title') {{ __('leaves.balance_report_title') }} @stop @section('content')
{{ __('leaves.balance_report_title') }}
@foreach($employees as $emp) @php $used = $emp->leaves->sum('days_count'); $totalBalance = $emp->total_leave_days ?? 21; $balance = $totalBalance - $used; @endphp @endforeach
{{ __('leaves.employee') }} {{ __('leaves.total_balance') }} {{ __('leaves.used_leaves') }} {{ __('leaves.remaining_balance') }}
{{ $emp->name_ar }} {{ $totalBalance }} {{ $used }} {{ $balance }}
@endsection @section('css') @endsection @section('js') @endsection