@extends('Master')


@section('content')
    <hr>
    <form method="POST" action="/msavabats/{{ $msavabat->id }}" class="form-horizontal">
        @csrf
        @method('DELETE')
        <div class="form-group">
            <label for="sessions_id" class="control-label col-md-2">عنوان جلسه</label>
            <div class="col-md-offset-2 col-md-push-4 col-md-4">
                    @foreach($sessions as $session)
                        <p>{{$session->title}}</p>
                    @endforeach
            </div>
        </div>
        <div class="form-group">
            <label for="description" class="control-label col-md-2">توضیحات</label>
            <div class="col-md-offset-2 col-md-push-4 col-md-4">
                <p>{{$msavabat->description}}</p>
            </div>
        </div>
        <hr>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <button class="btn btn-success" type="submit">حذف کردن</button>
                <a href="{{url('msavabats')}}" class="btn btn-danger">بازگشت</a>
            </div>
        </div>
    </form>

@endsection