@php $expenses = [ 'All' => 'All', 'Employee Expense' => 'Employee Expense', 'Travel Expense' => 'Travel Expense', 'Office Expense' => 'Office Expense', 'License Expense' => 'License Expense', 'Legal Expense' => 'Legal Expense', 'Salary Expense' => 'Salary Expense', 'Conveyance Expense' => 'Conveyance Expense', 'F&F Expense' => 'F&F Expense' ]; $billTotal = 0; @endphp @extends('admin.layouts.layouts') @section('title', 'Expense Report') @section('content')
{!! Form::label('search_location', 'Location', [], false) !!} {!! Form::select('search_location', $locations, request('search_location'), [ 'class' => 'form-control select2', 'placeholder' => 'Select Location', ]) !!}
{!! Form::label('search_expense', 'Expense', [], false) !!} {!! Form::select('search_expense', $expenses, request('search_expense'), [ 'class' => 'form-control select2', 'multiple' => false, 'id' => 'search_expense', 'placeholder' => 'Select Expense', ]) !!}
{!! Form::label('search_employee', 'Employee', [], false) !!} {!! Form::select('search_employee', array_combine($employees, $employees), request('search_employee'), [ 'class' => 'form-control select2', 'multiple' => false, 'id' => 'search_employee', 'placeholder' => 'Select Employee', ]) !!}
{!! Form::label('search_from', 'From', [], false) !!} {!! Form::text('search_from', request('search_from'), [ 'class' => 'form-control datepicker', 'id' => 'start_date', 'placeholder' => 'Select From Date', 'style' => 'height: 43px;' ]) !!}
{!! Form::label('search_to', 'To', [], false) !!} {!! Form::text('search_to', request('search_to'), [ 'class' => 'form-control datepicker', 'id' => 'end_date', 'placeholder' => 'Select To Date', 'style' => 'height: 43px;' ]) !!}
@if (!empty(request('search_location')) || !empty(request('search_expense')) || !empty(request('search_from')) || !empty(request('search_to'))) @endif
{{-- --}} @forelse($reportData as $data) @php $billTotal += $data->paid_amount; @endphp {{-- --}} @empty @endforelse
Date Expense Type Expense Sub Type Created By Employee Name Bank Name Payment Mode Amount ()Remark
{{ $data->expense_date ? date('d-m-Y', strtotime($data->expense_date)) : '-' }} {{ $data->expense_type }} {{ $data->expense_sub_type_name ?? '-' }} {{ $data->created_by ?? '-' }} {{ $data->employee_name ?? '-' }} {{ $bankNames[$data->bank_id] ?? 'N/A' }} {{ ucfirst($data->payment_mode) ?? '-' }} {{ number_format($data->paid_amount, 2) }}{{ $data->remark ?? '-' }}
No records found
Total {{ number_format($billTotal, 2) }}
@endsection @section('page-js') @endsection