@extends('layouts.app') @section('content')

PAYMENT SUMMARY REPORT CUSTOMER WISE

@include('xreports::common.report_date_range_select')
@php $customers = \Pramix\XCustomer\Models\CustomerModel::all(); $user = Auth::user(); if ($user->username != 'admin' && $user->username != 'user35') { if (Auth::user()->can(['SHOW_OWN_CUSTOMERS'])) { $customers = $customers->where('rep_id', $user->id); } } if ($user->username == 'user35'|| $user->username == 'USER30@GMAIL.COM' || $user->username == 'USER33@GMAIL.COM') { $customers = $customers->where('invoice_type', '35'); } $customers = $customers->pluck('company_name', 'id'); @endphp
{{ Form::select('customer_id', $customers, '', ['class' => 'form-control select2', 'id' => 'customer_id']) }}
{{-- {{ Form::select('rep_id', \Pramix\XUser\Models\User::pluck('username', 'id'), '', ['class' => 'form-control select2', 'placeholder' => 'Select Rep', 'id' => 'rep_id']) }} --}}
{{-- {{ Form::select('rep_id', \Pramix\XUser\Models\User::pluck('username', 'id'), '', ['class' => 'form-control select2', 'placeholder' => 'Select Rep', 'id' => 'rep_id']) }} --}}
{{-- {{ Form::select('rep_id', \Pramix\XUser\Models\User::pluck('username', 'id'), '', ['class' => 'form-control select2', 'placeholder' => 'Select Rep', 'id' => 'rep_id']) }} --}}

@endsection @section('include_js') @endsection @section('custom_script') @endsection