@extends('theme.master') @section('title', "$batch->title") @section('content') @include('admin.message') {{ $batch['title'] }} {{ __('Created') }}: {{ $batch->user['fname'] }} {{ __('Last Updated') }}: {{ date('jS F Y', strtotime($batch['updated_at'])) }} @if ($batch['preview_image'] !== null && $batch['preview_image'] !== '') @else @endif @if (Auth::check()) {{ csrf_field() }} @else {{ __('Add To Cart') }} @endif {{ __('Detail') }} {!! $batch->detail !!} {{ __('Courses In batch') }} @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)) {{ __('Bundles In batch') }} @foreach ($batch->allowed_bundles as $bundles) @php $course = App\BundleCourse::where('id', $bundles)->first(); @endphp {{ $course->title }} {{ $course->short_detail }} @endforeach @endif @endsection