@extends('dashboard.layout.layout') @section('content')
{!! trans('dashboard.point_use.'.request('user_type').'_point_use') !!}
@include('dashboard.point_use.filter')
{!! $users->links() !!}
@foreach ($users as $user) @foreach($user->userPoints->unique('user_id') as $point) @endforeach @endforeach
# {!! trans('dashboard.general.name') !!} {!! trans('dashboard.general.phone') !!} {!! trans('dashboard.point.points_current_count') !!} {!! trans('dashboard.point.points_used_count') !!} {!! trans('dashboard.point.replace_amount') !!} {!! trans('dashboard.general.added_date') !!}
{{ $loop->iteration }} {{ $user->fullname }} {{$user->phone}} {{$user->points}} {{$point->sum('points')}} {{$point->sum('amount')}}
{{ $point->created_at->format("Y-m-d") }}
{!! $users->links() !!}
@include('dashboard.layout.notify_modal') @endsection @include('dashboard.point_use.scripts')