SL# @if($data['employeeColShow']) Employee Name Employee ID @endif Branch Joining Date Basic Job Duration Net Amount Total Amount @if(count($data['result'])>0) @foreach($data['result'] as $row) {{ $row['serial'] }} @if($data['employeeColShow']) {{ $row['employee_name'] }} {{ $row['employee_id'] }} @endif {{ $row['branch'] }} {{ $row['joining_date'] }} {{ $row['basic'] }} {{ $row['job_duration'] }} {{ $row['net_amount'] }} {{ $row['total_amount'] }} @endforeach @else No data available @endif @if(count($data['result'])>0) Total: {{ $data['netAmount'] }} {{ $data['totalAmount'] }} @endif