@extends('layouts.admin') @section('content')
@lang('student.filter by')
@if (Request::has('date'))

@if ($deductions->first()) ({{$deductions->first()->from}} To {{$deductions->first()->to}} ) @endif

{{-- Export btn --}} @if (count($deductions) > 0)
@endif
@php $count=0; $amount=0; @endphp @foreach ($deductions as $item) @php $amount=$amount+$item->deduction; @endphp @endforeach
Id employee name salary deduction net salary
{{++$count}} {{$item->employee->name}} {{$item->salary}} EGP {{$item->deduction}} EGP {{$item->net_salary}} EGP
Total Deductions: {{$amount}} EGP
@endif
@endsection