@extends('layouts.master')
@section('title', 'রুটিন')
@section('slider')
    @include('layouts.dotted-ash-design')
@endsection
@section('content')
    <div class="col-md-9">
        <div class="col-md-12 pd-0">
            <div class="u-shadow-v21 nbr g-bg-white rounded imp-forms routine mg-0 wow slideInUp"
                 data-wow-duration="3s">
                <div class="media g-mb-15">
                    <div>
                        <div class="bar-title">
                            <h5><a href=""><img src="img/leap-white.png" alt=""/><span>   রুটিন</span></a></h5>
                        </div>
                        <div class="panel-group" id="accordion">
                            @foreach($routines as $routine)
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <h4 class="panel-title">
                                            <a data-toggle="collapse" data-parent="#accordion"
                                               href="#collapse1{{$routine->id }}">{{ $routine->class  }} <i
                                                        class="fa  fa-date"></i>
                                                <small> Last Updated
                                                    Date: {{$routine->updated_at->format('d M Y')}}</small>
                                            </a>
                                        </h4>
                                    </div>
                                    <div id="collapse1{{$routine->id }}" class="panel-collapse collapse ">
                                        <div class="panel-body">
                                            <img src="routinefiles/{{$routine->file }}" class="img-responsive"/>
                                        </div>
                                    </div>
                                </div>
                            @endforeach
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

    @include('layouts.sidebar')
@endsection


@section('footer')
    @include('layouts.footer')
@endsection
 