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

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

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