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

Advance Report

@if(count($advance_salaries) >0)
@include('payroll.includes.printAndExcel')
@endif
@if(count($advance_salaries) >0)

{{store_info()->name_eng}}

@if(!empty($_GET['emp_department'])) {{\App\Models\Payroll\Settings\PayDepartments::find($_GET['emp_department'])->name}}@endif
Adance For The Year Of @if($print_month) {{ carbon()->parse($print_month)->format("F-Y")}} @else {{request()->get('year')}} @endif
@php $total_advance_amount = 0;$total_basic = 0; $i=1; $j=1; @endphp @foreach($advance_salaries as $advance_salary) {{-- @dd($advance_salary) --}} @php $basic_salary = $advance_salary->empinfo ? $advance_salary->empinfo->basic_salary : null; $total_basic += $basic_salary; $advance_amount = $advance_salary->amount; $total_advance_amount += $advance_amount; @endphp {{-- --}} @php($i++) @endforeach @if(!empty($bonus_info)) @endif
Sl# Name Design Station Basic Salary Amount Note Signature
{{$j++}} {{$advance_salary->empinfo->emp_name}} {{$advance_salary->empinfo->fetch_designation->name}} {{$advance_salary->empinfo->station_vehicle_no}}{{calculate_employee_job_duration($advance_salary->empinfo->joining_date,date("Y-m-d"))}} {{number_format($basic_salary)}} {{number_format($advance_amount)}} {{$advance_salary->note}}  
Total {{number_format($total_basic)}} {{number_format($total_advance_amount)}}    
@include('payroll.signature')
@else @if(request()->get('search') !=null)

No Data Found

@endif @endif @endsection @section('script') @endsection