File: /var/www/admin.javaapp.co.uk/resources/views/cafe/review-profile.blade.php
<x-app-layout>
<x-slot name="css">
<link rel="stylesheet" href="{{ asset('plugins/table/datatable/datatables.css') }}">
<link rel="stylesheet" href="{{ asset('plugins/table/datatable/dt-global_style.css') }}">
<style>
.dataTables_length {
margin: 10px;
}
.dataTables_paginate.paging_simple_numbers{
float: right;
margin: 15px !important;
}
</style>
</x-slot>
<x-app-breadcrumb>
@if (Auth::getDefaultDriver() == config('constants.cafe'))
<li class="breadcrumb-item active" aria-current="page">{{ __('common.myProfile') }}</li>
@endif
@if (Auth::getDefaultDriver() == config('constants.admin'))
<li class="breadcrumb-item">
<a href="{{ $cafeManagementUrl }}" class="breadcrumb_home">
{{ __('common.CafeManagement') }}
</a>
</li>
<li class="breadcrumb-item active" aria-current="page">{{ __('common.viewCafe') }}</li>
@endif
</x-app-breadcrumb>
<div class="page-header row">
<div class="page-title col-12 d-flex pr-4">
@if (Auth::getDefaultDriver() == config('constants.cafe'))
<h3 class="my-auto">{{ __('common.myProfile') }}</h3>
<a href="{{ $url }}" class="d-flex ml-auto btn btn-coffee-medium py-2 px-3">
<svg class="mr-2 my-1" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-plus-circle">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="16"></line>
<line x1="8" y1="12" x2="16" y2="12"></line>
</svg>
<span class="my-1">{{ __('common.editProfile') }}</span>
</a>
@endif
@if (Auth::getDefaultDriver() == config('constants.admin'))
<h3 class="my-auto">{{ __('common.CafeManagement') }}</h3>
@endif
</div>
</div>
<div class="row layout-top-spacing">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 layout-spacing">
{{-- <x-flash-message></x-flash-message> --}}
<div class="row mt-4 profileContent">
<div class="col-xl-3 col-lg-6 col-md-8 col-sm-12 col-12">
<div class="card component-card_2 profile_picture mb-5">
<a class="picture__image" target="_blank"
href="{{ isset($banner_image) && $banner_image != '' ? asset($banner_image) : asset('assets/img/400x300.jpg') }}">
<img src="{{ isset($banner_image) && $banner_image != '' ? asset($banner_image) : asset('assets/img/400x300.jpg') }}"
class="card-img-top picture__img" alt="widget-card-2">
</a>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12 row">
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6 col-6">
<h4 class=""><strong>{{ __('common.name') }}</strong></h4>
<p class="profile">{{ isset($name) && $name != '' ? $name : ' - ' }}</p>
</div>
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6 col-6">
<h4 class=""><strong>{{ __('common.email') }}</strong></h4>
<p class="profile">{{ isset($email) && $email != '' ? $email : ' - ' }}</p>
</div>
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6 col-6">
<h4 class=""><strong>{{ __('common.phone') }}</strong></h4>
<p class="profile">{{ isset($phone) && $phone != '' ? $phone : ' - ' }}</p>
</div>
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6 col-6 mt-4">
<h4 class=""><strong>{{ __('common.website') }}</strong></h4>
<p class="profile">{{ isset($website) && $website != '' ? $website : ' - ' }}</p>
</div>
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6 col-6 mt-4">
<h4 class=""><strong>{{ __('common.postcode') }}</strong></h4>
<p class="profile">{{ isset($postcode) && $postcode != '' ? $postcode : ' - ' }}</p>
</div>
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6 col-6 mt-4">
<h4 class=""><strong>{{ __('common.address') }}</strong></h4>
<p class="profile">{{ isset($address) && $address != '' ? $address : ' - ' }}</p>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-12 col-sm-12 col-12">
<h4 class=""><strong>{{ __('common.cafeHours') }}</strong></h4>
@foreach ($timing as $index => $time)
<div class="row">
<div class="col-5">
<p class="profile">{{ $days[$index] }}</p>
</div>
<div class="col-7">
<p class="profile">:
{{ $time->is_active == 1 ? date('h:i A', strtotime($time->open_time)) . ' - ' . date('h:i A', strtotime($time->close_time)) : '-' }}
</p>
</div>
</div>
@endforeach
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-6 mt-4">
<h4 class=""><strong>{{ __('common.bio') }}</strong></h4>
<p class="profile">{{ isset($bio) && $bio != '' ? $bio : ' - ' }}</p>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-6 mt-4">
<h4 class=""><strong>{{ __('common.cafe_filter') }}</strong></h4>
@if (isset($cafe_filter) && sizeof($cafe_filter) > 0)
@foreach ($cafe_filter as $filter)
<p class="profile">{{ isset($filter) && $filter != '' ? $filter : ' - ' }}</p>
@endforeach
@else
<p class="profile">{{ ' - ' }}</p>
@endif
</div>
</div>
<div class="menu-container row mt-4">
<h3 class="my-auto">Cafe Menu</h3>
<table id="menu-items-table" class="table dt-table-hover dataTable no-footer mt-4" role="grid" >
<thead>
<tr role="row">
<th class="sorting_disabled">Image</th>
<th class="sorting_disabled">Item Name</th>
<th class="sorting_disabled">Item Type</th>
<th class="sorting_disabled">Category</th>
<th class="sorting_disabled">Description</th>
<th class="sorting_disabled">Price</th>
<th class="sorting_disabled">Status</th>
</tr>
</thead>
<tbody>
@foreach ($menu_items as $menu_item)
<tr role="row">
<td>
@if($menu_item->item_image)
<img src="{{ $menu_item->item_image }}" alt="{{ $menu_item->item_name }}" style="width: 50px; height: auto;">
@else
No Image
@endif
</td>
<td>{{ $menu_item->item_name }}</td>
<td>{{ $menu_item->item_type }}</td>
<td>{{ $menu_item->item_category }}</td>
<td><textarea disabled style="width: 300px;height: 100px;">{{ $menu_item->item_description }}</textarea></td>
<td>{{ $menu_item->item_price }}</td>
<td>
@if ($menu_item->status == 1)
<button class="status-btn success-btn dt-btn">Available</button>
@else
<button class="status-btn danger-btn dt-btn">Not Available</button>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="loyalty-stamp-container row mt-4">
<h3 class="my-auto">Cafe Loyalty Stamps</h3>
<table id="loyalty-stamps-table" class="table dt-table-hover dataTable no-footer mt-4" role="grid" >
<thead>
<tr role="row">
<th class="sorting_disabled">Stamp Card Colour</th>
<th class="sorting_disabled">% Or �XX Off on Next Order</th>
<th class="sorting_disabled">Minimum Order Value</th>
<th class="sorting_disabled">No of Total Stamp</th>
<th class="sorting_disabled">Offer Text</th>
</tr>
</thead>
<tbody>
@foreach ($stamps as $stamp)
<tr role="row">
<td><div style="width: 40px; height: 40px; background-color: {{ $stamp->stamp_color }}; "></div></td>
<td>{{$stamp->discount}}</td>
<td>{{$stamp->min_order_value}}</td>
<td>{{$stamp->stamp_no}}</td>
<td>{{$stamp->offer_text}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<x-slot name="script">
<script src="{{ asset('plugins/table/datatable/datatables.js') }}"></script>
<script>
$(document).ready(function() {
$('#menu-items-table').DataTable({
"pageLength": 10, // Display 10 records per page by default
"scrollY": "400px", // Set vertical scroll height
"scrollCollapse": true, // Allow the table to collapse in height
"ordering": false,
"paging": true, // Enable pagination
"info": false // Hide the table information display
});
});
</script>
</x-slot>
</x-app-layout>