@extends('layouts.student') @section('css') @endsection('css') @section('script') @endsection('css') @section('script') @include('sweet::alert') @endsection('script') @section('navbar') @endsection('navbar') @section('sidebar') @endsection('sidebar') @section('header') @endsection('header') @section('content')

@if(auth()->user()->role=='دانش آموز') @endif @foreach($tamrin as $tamr) @foreach($tamr as $tamri) @if(empty(getsend($tamri->id))) @else @endif @if(auth()->user()->role=='دانش آموز') @endif @endforeach @endforeach
درس {{config('global.teacher')}} عنوان تکلیف نمره توضیحات تاریخ ارسال تکلیف فرصت تحویل فایلعملیات

{{$tamri->darss->name}}

{{\App\User::where('id',$tamri->user_id)->first()['f_name']}} - {{\App\User::where('id',$tamri->user_id)->first()['l_name']}}

{{$tamri->title}}

{{$tamri->mark}} {!! $tamri->description !!} {{ $tamri->created_at->toDateString() }} @if($tamri->updated_at->toDateString() !==$tamri->created_at->toDateString())

بروز شده در تاریخ:

{{ $tamri->updated_at->toDateString() }}
@endif
@if($tamri->mime) @if( $tamri->mime=='image/jpeg' or $tamri->mime=='image/png' or $tamri->mime=='image/bmp' )
@else دانلود @endif @endif @if($tamri->status==1 && !empty($tamri->pmime)) دانلود

@endif
@if( getexpire($tamri->expire,$tamri->time) == 'پایان فرصت' or auth()->user()->role=='اولیا')
فرصت تحویل تمرین به پایان رسیده است.
@else
@if(empty($row=\App\JTamrin::where('tamrin_id',$tamri->id)->where('user_id', auth()->user()->id)->first()) ) @else @endif
@endif
@endsection('content')