@extends('layouts.main') @section('page-style') @endsection @section('page-script') @endsection @section('content')

@include('layouts.notifications')
{{ $sub_title }}
@csrf
@php $col = '4' @endphp
{{array_sum(array_column($reportData['rating_item'],'total'))}}
Total User Rating
Show All Feedback
{{$reportData['rating_item']['5']['total']??0}}
5
Rating 5 start
{{$reportData['rating_item']['4']['total']??0}}
4
Rating 4 start
{{$reportData['rating_item']['3']['total']??0}}
3
Rating 3 start
{{$reportData['rating_item']['2']['total']??0}}
2
Rating 2 start
{{$reportData['rating_item']['1']['total']??0}}
1
Rating 1 start
@for($i = 5; $i>0 ; $i--)
@if ($rating_target == 'hairstylist') @endif @if ($rating_target == 'product') @endif @if($reportData['rating_item'][$i]['data']??false) @foreach($reportData['rating_item'][$i]['data'] as $feedback) @if ($rating_target == 'hairstylist') @endif @if ($rating_target == 'product') @endif @endforeach @else @endif
Create Feedback Date Receipt Number Hair Stylist Product User Grand Total Action
{{date('d M Y',strtotime($feedback['created_at']))}} {{$feedback['transaction']['transaction_receipt_number']}}{{ $feedback['user_hair_stylist']['fullname'] }}{{ $feedback['product']['product_name'] }}{{$feedback['user']['name']}} Rp {{number_format($feedback['transaction']['transaction_grandtotal'],0,',','.')}} Detail
No Feedback Found
@csrf
@endfor
@endsection