mirror of https://github.com/kcal-app/kcal.git
				
				
				
			
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
| <x-app-layout>
 | |
|     <x-slot name="header">
 | |
|         <h2 class="font-semibold text-xl text-gray-800 leading-tight">
 | |
|             Delete {{ $entry->summary }}?
 | |
|         </h2>
 | |
|     </x-slot>
 | |
| 
 | |
|     <div class="py-12">
 | |
|         <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
 | |
|             <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
 | |
|                 <div class="p-6 bg-white border-b border-gray-200">
 | |
|                     <form method="POST" action="{{ route('journal-entries.destroy', $entry) }}">
 | |
|                         @method('delete')
 | |
|                         @csrf
 | |
|                         <div class="text-lg">Are you sure what to delete this journal entry?</div>
 | |
|                         <div class="flex flex-col space-y-2 mt-4 mb-4 text-lg">
 | |
|                             <div>
 | |
|                                 <span class="font-bold">Summay:</span>
 | |
|                                 <span>{{ $entry->summary }}</span>
 | |
|                             </div>
 | |
|                             <div>
 | |
|                                 <span class="font-bold">Date:</span>
 | |
|                                 <span>{{ $entry->date->format('D, j M Y') }}</span>
 | |
|                             </div>
 | |
|                             <div>
 | |
|                                 <span class="font-bold">Meal:</span>
 | |
|                                 <span>{{ $entry->meal }}</span>
 | |
|                             </div>
 | |
|                         </div>
 | |
|                         <x-inputs.button class="bg-red-800 hover:bg-red-700">
 | |
|                             Yes, delete
 | |
|                         </x-inputs.button>
 | |
|                         <a class="ml-3 text-gray-500 hover:text-gray-700 hover:border-gray-300"
 | |
|                            href="{{ route('journal-entries.index') }}">No, do not delete</a>
 | |
|                     </form>
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| </x-app-layout>
 |