@extends('layouts.app') @php $transaction = new App\Models\Transaction(); $ModelName = 'App\Models\Salary'; $moduleName = __('lang.salary'); $createItemName = __('lang.all') . $moduleName; $breadcrumbCurrentName = __('lang.all'); $breadcrumbMainName = $moduleName; $breadcrumbMainIcon = 'fas fa-dollar-sign'; $ParentRouteName = 'salary'; $searchRouteName = $ParentRouteName; $role_manage = roleManageFile(); $all = config($role_manage.'.Salary.All'); $create = config($role_manage.'.Salary.Create'); $delete = config($role_manage.'.Salary.Delete'); $edit = config($role_manage.'.Salary.Edit'); $pdf = config($role_manage.'.Salary.Pdf'); $permanently_delete = config($role_manage.'.Salary.PermanentlyDelete'); $restore = config($role_manage.'.Salary.Restore'); $show = config($role_manage.'.Salary.Show'); $trash_show = config($role_manage.'.Salary.TrashShow'); if($action == 'trashed') { $breadcrumbCurrentName = __('lang.trashed'); $searchRouteName = $ParentRouteName.'.trashed'; } $common = new \App\Models\Common(); @endphp @section('title') {{ $moduleName }} -> {{ $breadcrumbCurrentName }} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.left-sidebar') @stop @section('content')

{{__('lang.search_criteria')}}


@csrf @include('admin.hrm.salary.partials.search')
{{__('lang.clear')}}
@if ($create)
@endif
{{ __('lang.all') }} ({{ $ModelName::all()->count() }}) {{ __('lang.trash') }} ({{ $ModelName::onlyTrashed()->count() }})
@if (count($salaries) > 0) {{-- --}} @foreach ($salaries as $salary) {{-- --}} @endforeach {{-- --}}
{{ __('lang.sno') }} {{ __('lang.employee') }} {{ __('lang.job_type') }} {{ __('lang.type') }}{{ __('lang.job_hours') }}{{ __('lang.over_time_rate') }} {{ __('lang.amount') }} {{ __('lang.month') }} {{ __('lang.year') }} {{ __('lang.options') }}
{{ $loop->iteration }} {{ $salary->employee->name ?? ' - ' }} {{ ucfirst($salary->job_type ?? ' - ') }} {{ ucfirst($salary->type ?? ' - ') }} {{ $salary->job_hours ?? ' - ' }} {{ $transaction->convert_money_format($salary->over_time_rate ?? 0) }} {{ $transaction->convert_money_format($salary->amount ?? 0) }} {{ $common->getMonthName($salary->month) ?? ' - ' }} {{ $salary->year ?? ' - ' }}
{{ __('lang.sno') }} {{ __('lang.employee') }} {{ __('lang.job_type') }} {{ __('lang.type') }}{{ __('lang.job_hours') }}{{ __('lang.over_time_rate') }} {{ __('lang.amount') }} {{ __('lang.month') }} {{ __('lang.year') }} {{ __('lang.options') }}
@else
{{ __('lang.there_has_no_data') }}
@endif
{{ $salaries->links() }}
@stop @push('include-css') @endpush @push('include-js') @endpush