/
home
/
obinna
/
html
/
cravings
/
resources
/
views
/
admin
/
Upload File
HOME
@extends('layouts.admin') @section('extrastyle') <style> .action-links a { display: block; white-space: nowrap; } </style> @endsection @section('content') <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h4 class="card-title">Assessment Places</h4> </div> <div class="card-body"> <div class="table-responsive"> <table class="table"> <thead class="text-primary"> <tr> <th>Name</th> <th>Address</th> <th>Phone 1</th> <th>Opening</th> <th>Closing</th> <th>Type</th> <th>Longitude</th> <th>Latitude</th> <th>Actions</th> </tr> </thead> <tbody> @foreach ($places as $place) <tr> <td> {{ isset($place['name']) ? $place['name'] : "" }} </td> <td>{{ isset($place['address']) ? $place['address'] : "" }}</td> <td>{{ isset($place['phone']) ? $place['phone'] : "" }}</td> <td>{{ isset($place['opening']) ? $place['opening'] : "" }}</td> <td>{{ isset($place['closing']) ? $place['closing'] : "" }}</td> <td>{{ isset($place['type']) ? $place['type'] : "" }}</td> <td>{{ isset($place['location']) && isset($place['location']['coordinates']) ? $place['location']['coordinates'][0] : "" }}</td> <td>{{ isset($place['location']) && isset($place['location']['coordinates']) ? $place['location']['coordinates'][1] : "" }}</td> <td class="action-links"> <a href="{{ route('assessment_places_edit', ['slug' => $place['slug']])}}" target="_blank">Edit</a> {{-- <a data-slug="{{ $place['slug'] }}" href="{{ route('delete_place', ['slug' => $place['slug']])}}" class="delete-one">Delete</a> --}} </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @endsection