@extends('layouts.admin') @php if (Auth::user()->role == '1') { $user_profile = 'Admin'; } else { $user_profile = 'Co-ordinator'; } @endphp {{ config('app.name', 'Laravel') }} | {{ $user_profile }} | Edit Home Work @section('main-content')
@if (Session::has('success')) @endif

Add New Home Work

HomeWork Details
@php $images = App\Models\HomeWorkImage::select(DB::raw("CONCAT('$cdn', image) AS image"),'id') ->where('home_work_id', $homework->id) ->get() ->pluck('image','id') ->toArray(); @endphp @foreach ($images as $key => $image)
@endforeach
{!! $homework->html !!}
@endsection