@extends('admin.template.master') @section('content')
@csrf
Select Branch
@foreach ($branches as $br) @if ($branch_ids != '') @if (in_array($br->branch_id, $branch_ids))
{{ $br->branch_name }}
@else
{{ $br->branch_name }}
@endif @else
{{ $br->branch_name }}
@endif @endforeach


@php $total_percentage=0; $totalSales=0; @endphp @foreach ($sales_category['category_sales'] as $row) @php $total_percentage +=$row['percentage']; @endphp @endforeach
# {{__('messages.category')}} {{__('messages.amount')}} {{__('messages.percentage')}}
{{ $loop->iteration }} {{ $row['category_name'] }} {{ number_format($row['total_sales'], 3) }} {{ $row['percentage'] }}%
    {{number_format($sales_category['total_overall_sales'])}} {{number_format($total_percentage, 3)}}
@endsection @section('customjs') @endsection