@foreach ($restaurants as $key => $restaurant) {{ $key + $restaurants->firstItem() }}
{{ Str::limit($restaurant->name, 20, '...') }}
@php($restaurant_rating = $restaurant['rating'] == null ? 0 : array_sum($restaurant['rating']) / 5) {{ $restaurant_rating }}
{{ $restaurant->restaurant_sub_update_application->package->package_name }} {{ \App\CentralLogics\Helpers::format_currency($restaurant->restaurant_sub_update_application->package->price) }} {{ $restaurant->restaurant_sub_update_application->expiry_date->format('d-M-Y') }} @if ($restaurant->vendor->status == 1) @if ($restaurant->restaurant_sub_update_application->status == 1) {{ translate('messages.active') }} @else {{ translate('messages.Expired') }} @endif @else {{ translate('messages.inactive_vendor') }} @endif
@endforeach