{{ __('messages.customer_course_search') }}

{{ __('messages.search') }}

{{__('messages.Account Type')}} .lazy order_account_type
@foreach (\App\Models\Category::where("active",1)->whereNull("category_id")->pluck('id', 'name_en') as $Category => $id)
  • @endforeach
    @foreach (\App\Models\Category::where("active",1)->whereIn("category_id", $this->main_category)->pluck('id', 'name_en') as $Category => $id)
  • @endforeach
    @foreach (\App\Models\Product::where("active",1)->whereIn("category_id", $this->category)->pluck('id', 'name_en') as $Product => $id)
  • @endforeach
    @foreach (\App\Models\User::whereHas("owner_orders")->where("active" ,1)->get() as $user_f)
  • @endforeach
    @if ($this->search)

    {{ __('messages.search result') }}

    @can("add customer_groups")
    comment
    {{__('messages.Make Group using Result')}}
    @endcan
    # {{ __('messages.Customer') }} {{ __('messages.mobile') }} {{ __('messages.last_follow_up_by') }} {{ __('messages.course date') }} {{ __('messages.Product') }} {{ __('messages.Category') }} {{-- {{ __('messages.Course Level') }} --}} {{($checkAll)? count($selected_customers_ids) ." Rows":"Select Results"}}
    @php $end_date= null; $product= []; $customer= []; $course_level= []; $this->customers_ids_rslt=[]; @endphp @forelse ($order_details as $key=>$order_detail) @if ((!in_array($order_detail->customer_id,$customer)) || (in_array($order_detail->customer_id,$customer) && (!in_array($order_detail->product_id,$product)))) @php $end_date= $order_detail->end_date; $product[]=$order_detail->product_id; $customer[]=$order_detail->customer_id; @endphp # {{ $order_details->firstItem() + $key}} {{ __('messages.Customer') }} {{ $order_detail->customer ? $order_detail->customer->name : null }} {{ __('messages.mobile') }} {{ $order_detail->customer ? $order_detail->customer->mobile : null }} {{ __('messages.last_follow_up_by') }} {{ $order_detail->last_follow_up_by_user ? $order_detail->last_follow_up_by_user->name : null }} {{ __('messages.Course Date') }} {{$order_detail->c}} {{ $order_detail->end_date ? $order_detail->end_date : null }} {{ __('messages.Product') }} {{ $order_detail->product ? $order_detail->product->name : null }} {{ __('messages.Category') }} {{ $order_detail->category ? $order_detail->category->name : null }} {{-- {{ __('messages.Course Level') }} {{ $order_detail->course_level ? $order_detail->course_level->name : null }} --}}   @php array_push( $this->customers_ids_rslt, $order_detail->customer_id); @endphp @endif @empty {{ __('messages.Empty Result') }} @endforelse
    {{ $order_details->links() }} @endif