@extends('backend.layouts.app') @section('title', @$data['title']) @section('content') {!! breadcrumb([ 'title' => @$data['title'], route('admin.dashboard') => _trans('common.Dashboard'), route('hrm.payroll_salary.index') => _trans('common.List'), '#' => @$data['title'], ]) !!}

@include('backend.auth.backend_logo')

{{ @date('F', strtotime($data['salary']->date)).' '.@date('Y', strtotime($data['salary']->date)) }}

@if ($data['salary']->is_calculated==0) {{ _trans('message.Please complete salary calculation to get the final salary.') }} @endif
{{-- --}}

{{ _trans('common.Gross Salary') }} : {{ currency_format(@$data['salary']->employee->basic_salary) }} {{ _trans('common.Total Present') }} : {{ @$data['salary']->present }} {{ _trans('common.Total Late') }} : {{ @$data['salary']->late }} {{ _trans('common.Total Early Leave') }} : {{ @$data['salary']->left_early }} {{ _trans('common.Date') }} : {{ main_date_format(@$data['salary']->date) }}

{{ _trans('common.Total') }}

: {{ currency_format(@$data['salary']->absent_amount+$data['salary']->deduction_amount) }}


{{ _trans('payroll.Addition') }}


{{ _trans('payroll.Adjust Salary') }}

: {{ currency_format(number_format(@$data['salary']->adjust, 2)) }}

@if ($data['salary']->allowance_details != null) @forelse (@$data['salary']->allowance_details as $key => $value)

{{ @$value['name'] }}

: {{ currency_format($value['amount']) }}

@empty {{--

--- No Allowance ---

--}} @endforelse @endif

{{ _trans('common.Total') }}

: {{ currency_format(@$data['salary']->allowance_amount+$data['salary']->adjust) }}

{{ _trans('common.Payment') }}


{{ _trans('common.Gross Salary') }}

: {{ currency_format(@$data['salary']->employee->basic_salary) }}

{{ _trans('common.Total Deduction') }}

: {{ currency_format(@$data['salary']->absent_amount+$data['salary']->deduction_amount) }}

{{ _trans('common.Total Addition') }}

: {{ currency_format(@$data['salary']->allowance_amount+$data['salary']->adjust) }}

{{ _trans('common.Total Payable') }}

: {{ currency_format(number_format(@$data['salary']->net_salary, 2)) }}

{{ _trans('common.Total Paid') }}

: {{ currency_format(number_format(@$data['salary']->net_salary - $data['salary']->due_amount, 2)) }}

{{ _trans('common.Total Due') }}

: {{ currency_format(number_format($data['salary']->due_amount, 2)) }}

{{ _trans('common.Net Pay') }}


{{ currency_format(number_format($data['salary']->due_amount, 2)) }}

@endsection @section('script') @endsection