@extends('backEnd.layouts.master') @section('title', 'Salary Payments') @section('css') @endsection @section('content')
{{-- PAGE HEADER --}}

Salary Payments

History of all salary transactions.

Make Payment
{{-- FILTERS --}}
{{-- TABLE --}}
@forelse($payments as $payment) @empty @endforelse
# Txn ID Employee Details Month Amount Method Status View
{{ $loop->iteration + ($payments->currentPage()-1)*$payments->perPage() }} {{ $payment->payment_id }}
{{ substr($payment->employee->name, 0, 1) }}
{{ $payment->employee->name }}
{{ $payment->employee->employee_id }}
{{ $payment->payment_month }} ৳{{ number_format($payment->amount, 2) }}
@if($payment->payment_method == 'bank') @elseif($payment->payment_method == 'cash') @else @endif {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
{{ $payment->payment_date->format('d M, Y') }}
@if($payment->status == 'paid') Paid @elseif($payment->status == 'failed') Failed @else Pending @endif

No payment history found

Adjust filters or create a new payment.
{{-- PAGINATION --}}
Showing {{ $payments->firstItem() }} to {{ $payments->lastItem() }} of {{ $payments->total() }} transactions
{{ $payments->links('pagination::bootstrap-4') }}
@endsection @push('scripts') @endpush