@extends('layouts.master') @section('content')
@if ($errors->any()) @endif @if (session('success')) @endif {{-- create --}} {{-- create end --}}
បង្កើត
មុខវិជ្ជា
@if ($course->count()) @foreach ($course as $index => $courses) @endforeach
# អ្នកបង្កើត មុខវិជ្ជា ពិពណ៌នា តម្លៃដាក់លក់ តម្លៃដើម រូបភាព សកម្មភាព
{{ $i + $index + 1 }} {{ $user->find($courses->user_id)->name ?? 'N/A' }} {{ $courses->course_name }} {{ Str::limit($courses->description, 50) }} ${{ number_format($courses->price, 2) }} ${{ number_format($courses->price_normal, 2) }} @if ($courses->imgCourse) Course Image @else N/A @endif
@csrf @method('DELETE')
{{-- update --}} {{-- update --}} {{-- update end --}} {{-- show --}} @else
មុខវិជ្ជាមិនមានទេ។
@endif
{{-- show end --}} @endsection