foodomaa admin responsif

How to Change the Foodomaa Restaurant Owner Page to Be Responsive

Posted on

In this post, I will try to provide a guide on how to make the restaurant owner admin page at Foodomaa responsive.

Ok, just get on with it. If you want to use the code that I use. Here is the file location that must be changed:

Store/Restaurant Page

Open the following files:
– resources/views/restaurantowner/restaurants.blade.php

Add this code after the <div class=”content”> code and before the code <div class=”card”>

@if($agent->isDesktop())
<div class="card"> ⇔ </div>  <--(Don't copy this)
@else 
@foreach ($restaurants as $restaurant)
<div class="card">
<div class="card-header pb-0">
<div class="d-flex">
<div>
<img src="{{substr(url("/"), 0, strrpos(url("/"), '/'))}}{{ $restaurant->image }}"
alt="{{ $restaurant->name }}" height="80" width="80"
style="border-radius: 0.275rem;">
</div>
<div class="ml-3">
<h4 class="mb-0"><strong>{{ $restaurant->name }}</strong></h4>
<span>{{ $restaurant->address }}</span><br>
<span>
@if(!$restaurant->is_accepted)
<span class="badge badge-flat border-grey-800 text-default text-capitalize">
{{__('storeDashboard.spRowPending')}}
</span>
@endif
<span class="badge badge-flat border-grey-800 text-default text-capitalize">
@if($restaurant->is_active) {{__('storeDashboard.spRowActive')}} @else {{__('storeDashboard.spRowInActive')}} @endif
</span>
</span>
</div>
</div>
</div>
<hr>
<div class="card-body pt-0 pb-2">
<div class="d-flex justify-content-between">
<div>
<div class="btn-group btn-group-justified">
<a href="{{ route('restaurant.get.editRestaurant', $restaurant->id) }}"
class="badge badge-primary badge-icon"> {{__('storeDashboard.edit')}} <i
class="icon-database-edit2 ml-1"></i></a>
</div>
</div>
</div><
/div>
</div>
@endforeach 
@endif

But if you want to replace it immediately with the file I modified, download the following file:

  • Upload to directory: / resourse / views / restaurantowner
  • And extract the files that you have downloaded

The file will change the page: restaurant, addons category, addons, item category and orders to be responsive

Leave a Reply

Your email address will not be published. Required fields are marked *