@extends('layouts.app') @section('content')
@php if(\Illuminate\Support\Facades\Route::is('reports.daily_sales_summary_report')) { $reportName = 'DAILY SALE SUMMERY'; } @endphp

{{ $reportName }}

@include('xreports::common.report_date_range_select')
{{-- {{ Form::select('rep_id', \Pramix\XUser\Models\User::pluck('username', 'id'), '', ['class' => 'form-control select2', 'placeholder' => 'Select Rep', 'id' => 'rep_id']) }} --}}
@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') { $customers = $customers->where('invoice_type', '35'); } $customers = $customers->pluck('company_name', 'id'); @endphp
{{ Form::select('customer_id', $customers, '', ['class' => 'form-control select2', 'placeholder' => 'Select Customer', 'id' => 'customer_id']) }}
{{--
--}}

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