@extends('layouts/acc_layout') @section('title', '| Receipt Payment Report') @section('content') @php use App\Service\UserUtility; $hasAccessToViewAllProjects = UserUtility::hasAccessToViewAllProjects(); @endphp

Receipt Payment Statement

@php $userAccessibleBranchIds = App\Service\Service::getEngagedBranchesByUserId(Auth::user()->id); if (Auth::user()->branchId ==1 ) { $branchOptions = ['All' => 'All (With HO)', '-1' => 'All (WithOut HO)']; } else{ $branchOptions = ['0' => 'All']; } $branchOptions = $branchOptions + DB::table('gnr_branch')->select(DB::raw("CONCAT(LPAD(branchCode, 3, 0), ' - ', name) AS nameWithCode"), 'id') ->whereIn('id', $userAccessibleBranchIds) ->pluck('nameWithCode', 'id') ->all(); $searchByOptions = array( '' => 'Select', 'fiscalYear' => 'Fiscal Year', 'currentYear' => 'Current Year', 'dateRange' => 'Date Range', ); $searchElements = [ ['element' => 'project', 'col' => 1, 'attributes' => ['print_order' => '1']], ['element' => 'project_type', 'col' => 1, 'attributes' => ['print_order' => '3']], ['element' => 'report_level', 'attributes' => ['print' => '0'], 'child_print' => '1', 'child_print_order' => 2], ['element' => 'branchId', 'options' => $branchOptions,'col' => 1, 'attributes' => ['print_order' => '2']], ['element' => 'custom', 'type' => 'select', 'name' => 'voucherType', 'id' => 'fillVoucherType', 'options' => ['cash' => 'Cash', 'all' => 'All', 'non-cash' => 'Non-Cash'], 'label' => 'V. Type:', 'col' => 1], ['element' => 'acc_depth_level', 'col' => 1, 'attributes' => ['print' => '0']], ['element' => 'custom', 'type' => 'select', 'name' => 'roundUp', 'id' => 'fillRoundUp', 'options' => [0 => 'No', 1 => 'Yes'], 'label' => 'Round Up:', 'col' => 1, 'attributes' => ['print' => '0']], ['element' => 'custom', 'type' => 'select', 'name' => 'withZero', 'id' => 'fillWithZero', 'options' => [1 => 'Yes', 0 => 'No'], 'label' => "'0' Balance:", 'col' => 1, 'attributes' => ['print' => '0']], ['element' => 'acc_search_by_time', 'col' => 1, 'options' => $searchByOptions, 'attributes' => ['print' => '0']], ['element' => 'fiscal_year', 'col' => 1, 'divHidden' => true, 'attributes' => ['print' => '0']], ['element' => 'dateFrom', 'col' => 1, 'divHidden' => true, 'attributes' => ['print' => '0']], ['element' => 'dateTo', 'col' => 1, 'divHidden' => true, 'attributes' => ['print' => '0']], ]; @endphp @include('partials.searchPanel.main', ['searchElements' => $searchElements])