/
home
/
obinna
/
html
/
cravings
/
resources
/
views
/
admin
/
Upload File
HOME
@extends('layouts.admin') @section('content') <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"> <small><a href="{{ route('admin_places_food')}}" class="btn btn-warning"><i class="fa fa-arrow-left"></i> Back to List</a></small> <span>{{ $place }}</span> </h4> </div> <div class="card-body"> <form action="{{ route('admin_update_place_food', ['place' => $place]) }}" method="POST"> @csrf <div class="table-responsive"> <table class="table"> <thead class="text-primary"> <tr> <th>Food Name</th> <th>Price</th> </tr> </thead> <tbody> @foreach ($food as $item) <tr> <td>{{ $item['name'] }}</td> <td> <input type="text" name="price[]" class="form-control" value="{{ $item['price'] }}" /> <input type="hidden" name="_id[]" value="{{ $item['_id'] }}"> </td> </tr> @endforeach </tbody> </table> </div> <button class="btn btn-primary">Save</button> </form> </div> </div> </div> </div> @endsection