@extends('layouts.adminapp') @section('title') {{ __('lng.SetSalary') }} - {{ __('lng.PaySalary') }} @endsection @section('active_payroll', 'active') @section('open_payroll', 'open') @section('active_set_salary', 'active') @section('content')

{{ __('lng.PaySalary') }}

@php $Payable = 0; $Payed = 0; $Balance = 0; foreach ($Employee->salarypayables as $Salarypayable) { if ($Salarypayable->isCancelled == 0) { $Payable += $Salarypayable->total; } } foreach ($Employee->salaries as $Salary) { if ($Salary->isCancelled == 0) { $Payed += $Salary->amount; } } $Balance = $Payable - $Payed; @endphp
@csrf
{{ $Employee->name }} : {{ $Employee->designation->title ?? '' }}
{{ __('lng.Amount') }} : @currency($Balance)
@error('date')
{{ $message }}
@enderror
@if ($Voucher->vouchernumber == PBConst::VOUCHER_NUMBER_AUTOMATIC)
@else
@endif
@error('amount')
{{ $message }}
@enderror
{{ __('lng.DetailsTable') }}
@php $si=0; @endphp @foreach ($Salaries as $Salary) @php $DTs = date("d-m-Y",strtotime($Salary->date)); @endphp @endforeach
{{ __('lng.SiNo') }} {{ __('lng.Date') }} {{ __('lng.VoucherNo') }} {{ __('lng.Amount') }} {{ __('lng.Narration') }} {{ __('lng.Action') }}
{{ ++$si }} {{ $DTs }} {{ $Salary->vouchernumber }} @currency($Salary->amount) {{ $Salary->narration }}
@csrf @method('delete')

{{ __('lng.Showing') }} {{ $Salaries->count() }} {{ __('lng.Items') }}

@endsection