@extends('layouts.guest.master') @section('content') @php $locale = session()->get('locale') ? session()->get('locale') : App\Helpers\ConstantHelper::ENGLISH; @endphp
{{-- Category Filter --}}
{{-- Price Filter --}}
@forelse ($branches as $key => $branch)

{{ $locale == App\Helpers\ConstantHelper::ARABIC ? $branch->name_ar : $branch->name_en }}

{{ $branch->address }} ({{ round($branch->distance) . 'Km' }} )

@if ($branch->branchView->rating > 0)
@php $totalRating = round($branch->branchView->rating); @endphp @for ($i = 1; $i <= 5; $i++) @if ($i <= $totalRating) @else @endif @endfor ({{ $totalRating }})
@endif
@empty

{{ __('admin::message.no_records_found') }}

@endforelse {{ $branches->appends(request()->input())->links('admin::partials.pagination') }}
@endsection @section('script') @endsection