@extends('admin.layout') @section('content')

Report(Salary)



@php $total =0; @endphp @foreach($result as $item) @endforeach
DateInvoice Name Designation Month Year Sub Total Leave Fine Salary Amount Status
{{ !empty($item->created_at)? date('d/m/Y', strtotime($item->created_at)) : '' }} {{ $item->invoice_id ?? '' }} {{ $item->name ?? '' }} {{ $item->position ?? '' }} {{ $item->month ?? '' }} {{ $item->year ?? '' }} {{ $item->sub_total ?? '' }} {{ $item->leave_fine ?? '' }} {{ $item->total_amount ?? '' }} @php $total = $item->total_amount + $total @endphp {{ $item->status ?? '' }}
Total {{ $total ?? 0 }}
@endsection