@extends('layouts.guest.master') @section('content') @php $locale = session()->get('locale') ? session()->get('locale') : App\Helpers\ConstantHelper::ENGLISH; @endphp {{ $locale == App\Helpers\ConstantHelper::ENGLISH ? $selectedCategory->title_en : $selectedCategory->title_ar }} {{-- BEGIN::Filter --}} {{ __('static.categories') }} @foreach ($categories as $key => $category) alias_en == $selectedCategory->alias_en ? 'checked' : '' }} id="example_{{ $category->id }}"> {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $category->title_ar : $category->title_en }} @endforeach {{ __('static.apply') }} {{-- END::Filter --}} {{ $branches->total() }} {{ __('static.results_found') }} @forelse ($branches as $key => $branch) @if (auth()->check()) @else @endif {{ $locale == App\Helpers\ConstantHelper::ENGLISH ? $branch->name_en : $branch->name_ar }} {{ $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 @if (@$branch->branchView->starting_from) {{ __('static.starting_services_from') }} {{ 'EGP ' . @$branch->branchView->starting_from }} @endif @empty {{ __('admin::message.no_records_found') }} @endforelse {{ $branches->appends(request()->input())->links('admin::partials.pagination') }} {{ __('static.cancel') }} @endsection @section('script') @endsection
{{ $branch->address }} ({{ round($branch->distance) . 'Km' }} )
{{ __('static.starting_services_from') }} {{ 'EGP ' . @$branch->branchView->starting_from }}