@extends("admin.layouts.app") @section("styles") @endsection @section("content")
Customers ({{$customers->total()}})
{!! Form::open(['route'=>"admin.customers.index",'method'=>"get"]) !!} @forelse($customers as $customer) deleted_at) class="bg-danger" @endif> @empty @endforelse
First Name Last Name Mobile Email Balance @if(request()->get("sort-health")=="asc") @elseif(request()->get("sort-health")=="desc") @else @endif Health Data Is Verified Is Blocked Allow Sms @if(request()->get("sort-points")=="asc") @elseif(request()->get("sort-points")=="desc") @else @endif Points @lang("constants.options")
{{Form::text("first_name",Request::get("first_name",NULL),['class'=>"form-control form-filter input-sm"])}} {{Form::text("last_name",Request::get("last_name",NULL),['class'=>"form-control form-filter input-sm"])}} {{Form::text("mobile",Request::get("mobile",NULL),['class'=>"form-control form-filter input-sm"])}} {{Form::text("email",Request::get("email",NULL),['class'=>"form-control form-filter input-sm"])}} Reset
{{$customer->first_name}} @if(!$customer->password) Guest @endif
@if($customer->notes) @endif
{{$customer->last_name}} {{$customer->mobile}} {{$customer->email}} id)}}">{{$customer->getTotalBalance()}} id)}}">{{$customer->getSteps()}} @if ($customer->is_verified) @else @endif @if ($customer->is_blocked) @else @endif @if ($customer->allow_sms) @else @endif {{$customer->customer_rewards->sum("points")}} {{Form::open(['route'=>["admin.customers.destroy",$customer->id],'method'=>"delete"])}} @if($customer->carts()->count() > 0)id)}}" class="btn btn-outline btn-sm blueis_verified" title="Cart"> {{$customer->carts()->count()}} Cart @else @endif @if($customer->orders()->count() > 0)$customer->id,'status'=>"All"])}}" class="btn btn-outline btn-sm blueis_verified" title="Order"> {{$customer->orders()->count()}} Orders @else @endif Edit id)}}" class="btn btn-outline btn-sm" title="Note"> Note $customer->mobile])}}" class="btn btn-outline btn-sm" title="Gift Cards"> {{$customer->gift_cards()->count()}} Gift Cards id)}}" class="btn btn-outline btn-sm purple" title="Login"> Login As the Customer @if(!$customer->deleted_at) @endif {!! Form::close() !!}
{!! $customers->links()!!}
@endsection @section("scripts") @include("admin.layouts.update_attribute") @endsection