@if (($data != null) && (count($data) > 0))
CSV {{ $data->links() }}
@endif @if (($data != null) && (count($data) > 0)) @foreach ($data as $val) @endforeach @endif
Membership No Name Point Balance Earliest Visit Last Visit Point Gained Point Used # of Transactions Amount Spend
{{$val->membership_no}} {{$val->name}} {{number_format($val->current_point)}} {{empty($val->min_date) ? '—' : date('Y-m-d', strtotime($val->min_date))}} {{empty($val->max_date) ? '—' : date('Y-m-d', strtotime($val->max_date))}} {{number_format($val->point_gained)}} {{number_format($val->point_used)}} {{number_format($val->count_trans)}} Rp. {{number_format($val->amount_spend)}}
@if (($data != null) && (count($data) > 0))
{{ $data->links() }} CSV
@endif