@extends('layouts.app') {{-- Important Variables --}} @section('title') {{__('lang.month_wise_recovery')}} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.left-sidebar') @stop @section('content') @php // $common = new \App\Models\Common(); @endphp {{__('lang.month_wise_recovery')}} {{__('lang.search_criteria')}} {{__('lang.select_project_name')}} {{__('lang.all_projects')}} @if (App\Models\Branch::userProjects()->get()->count() > 0) @foreach (App\Models\Branch::userProjects()->get() as $Branch) {{ $Branch->name }} @endforeach @endif {{__('lang.project')}} {{__('lang.select_customer')}} @foreach (App\Models\Customer::all() as $key => $type) {{ $type->name }} @endforeach {{__('lang.customer')}} {{__('lang.all')}} @foreach (App\Models\Common::sell_status(true,true) as $sell_status ) {{ $sell_status }} @endforeach {{__('lang.sale_status')}} @include('layouts.components.input_field',[ 'col' => "col-lg-4 col-md-4 col-sm-12 col-xs-12", 'name' => 'registration_no', 'label' => __('lang.registration_no'), 'value' => request()->get('registration_no'), ]) {{__('lang.select_internal_dealer_name')}} @foreach( App\Models\Employee::with('designation')->whereHas('designation', function($query) { $query->where('designation_name','=','Dealer Internal'); })->get() as $employee ) id == old('employee_id' )) selected @endif value="{{ $employee->id }}">{{ $employee->name }} @endforeach {{__('lang.internal_dealer_name')}} {{__('lang.select_external_dealer_name')}} @foreach( App\Models\Employee::with('designation')->whereHas('designation', function($query) { $query->where('designation_name','=','Dealer External'); })->get() as $employee ) id == old('employee_id' )) selected @endif value="{{ $employee->id }}">{{ $employee->name }} @endforeach {{__('lang.external_dealer_name')}} Select Month @foreach($common->getLastSixMonths() as $month ) {{$month}} @endforeach Select Months @stop @push('include-css') @endpush @push('include-js') @endpush