@extends('theme.master') @section('title', "$batch->title") @section('content') @include('admin.message') {{ $batch['title'] }} {{ __('frontstaticword.Created') }}: {{ $batch->user['fname'] }} {{ __('frontstaticword.LastUpdated') }}: {{ date('jS F Y', strtotime($batch['updated_at'])) }} @if ($batch['preview_image'] !== null && $batch['preview_image'] !== '') @else @endif @if (Auth::check()) {{ csrf_field() }} @else {{ __('frontstaticword.AddToCart') }} @endif {{ __('frontstaticword.Detail') }} {!! $batch->detail !!} {{ __('frontstaticword.CoursesInbatch') }} @foreach ($batch->allowed_courses as $batchs) @php $course = App\Course::where('id', $batchs)->first(); @endphp {{ $course->title }} {{ $course->short_detail }} @endforeach @if(isset($batch->allowed_bundles)) {{ __('frontstaticword.BundlesInbatch') }} @foreach ($batch->allowed_bundles as $bundles) @php $course = App\BundleCourse::where('id', $bundles)->first(); @endphp {{ $course->title }} {{ $course->short_detail }} @endforeach @endif @endsection