@extends('backend.partials.master') @section('title') {{ __('salary.title') }} {{ __('levels.list') }} @endsection @section('maincontent')
@csrf
@error('user_id') {{ $message }} @enderror
@error('date') {{ $message }} @enderror
{{ __('levels.clear') }}

{{ __('salary.title') }}

@if(hasPermission('salary_create') == true ) @endif
@if(hasPermission('salary_update') == true || hasPermission('salary_delete') == true ) @endif @php $i=0; @endphp @foreach ($salaries as $salary) @if(hasPermission('salary_read') == true || hasPermission('salary_update') == true || hasPermission('salary_delete') == true ) @endif @endforeach
{{ __('levels.id') }} {{ __('levels.user')}} {{ __('levels.from_account')}} {{ __('levels.month')}} {{ __('levels.date')}} {{ __('levels.note')}} {{ __('levels.amount')}}{{ __('levels.actions') }}
{{++$i}}
user
{{@$salary->user->name}}

{{@$salary->user->email}}

@if(@$salary->account->account_holder_name)
{{$salary->account->branch_name}}
@endif @if(@$salary->account->account_no)
{{$salary->account->account_no}}
@endif @if(@$salary->account->branch_name)
{{$salary->account->branch_name}}
@endif
{{\Carbon\Carbon::createFromFormat('Y-m',$salary->month)->format('M Y')}} {{dateFormat($salary->date)}} {{\Str::limit($salary->note,100,' ...')}} {{$salary->amount}}
{{ $salaries->links() }}

{!! __('Showing') !!} {{ $salaries->firstItem() }} {!! __('to') !!} {{ $salaries->lastItem() }} {!! __('of') !!} {{ $salaries->total() }} {!! __('results') !!}

@endsection() @push('styles') @endpush @push('scripts') @endpush