ass="col-sm-10 col-lg-8">
MASOFAVIY TA'LIM
TEXNOLOGIYALARI
Ta'limdagi zamonaviy
texnologiyalar va masofaviy ta'lim
Ma'sofaviy ta'lim bu o'qishning zamonaviy
ko'rinishi bo'lib,
ana'naviy yangi pedagogik va axborot texnologiylaridan foydalanishga asoslanadi
>Ro'yxatdan
o'tish
>Kirish
>
MASOFAVIY TA'LIM
TEXNOLOGIYALARI
O'quv jarayonida
masofaviy ta'lim
Ma'sofaviy ta'lim bu o'qishning zamonaviy
ko'rinishi bo'lib,
ana'naviy yangi pedagogik va axborot texnologiylaridan foydalanishga asoslanadi
>Ro'yxatdan
o'tish
>Kirish
Biz haqimizda
Welcome to eLEARNING
Tempor erat elitr rebum at clita. Diam dolor diam ipsum sit. Aliqu diam amet diam
et eos. Clita erat ipsum et lorem et sit.
Tempor erat elitr rebum at clita. Diam dolor diam ipsum sit. Aliqu diam amet diam
et eos. Clita erat ipsum et lorem et sit, sed stet lorem sit clita duo justo magna dolore erat
amet
Online Classes
International
Certificate
Skilled Instructors
Online Classes
International
Certificate
Read More
>
Graphic Design
49 Courses
>
Video Editing
49 Courses
>
>
Online Marketing
49 Courses
{{--
Courses
Popular Courses
>John Doe
>1.49 Hrs
30
Students
$149.00
(123)
Web Design & Development Course for Beginners
>John Doe
>1.49 Hrs
30
Students
$149.00
(123)
Web Design & Development Course for Beginners
>John Doe
>1.49 Hrs
30
Students
--}}
Instructors
Expert Instructors
Instructor Name
Designation
Instructor Name
Designation
Instructor Name
Designation
Instructor Name
Designation
Testimonial
Our Students Say!
>
Client Name
Profession
Tempor erat elitr rebum at clita. Diam dolor diam ipsum sit diam amet diam et
eos. Clita erat ipsum et lorem et sit.
>
Client Name
Profession
Tempor erat elitr rebum at clita. Diam dolor diam ipsum sit diam amet diam et
eos. Clita erat ipsum et lorem et sit.
>
Client Name
Profession
Tempor erat elitr rebum at clita. Diam dolor diam ipsum sit diam amet diam et
eos. Clita erat ipsum et lorem et sit.
Quick Link
About Us
Contact Us
Privacy Policy
Terms & Condition
FAQs & Help
Contact
123 Street, New York, USA
+012 345 67890
info@example.com
>
>
© Your Site Name, All Right Reserved.
Designed By HTML Codex
Distributed By ThemeWagon
Foydalanuchilar sahifasi:
@extends('admin.layouts.base')
@section('main')
Foydalanuvchilar
Id |
Ismi |
Emaili |
Roli |
Yaratilgan Sanasi |
@foreach ($users as $user)
{{ $user->id }} |
{{ $user->name }} |
{{$user->email}} |
{{$user->roles[0]->name}} |
{{ $user->created_at }} |
@endforeach
@endsection
Topshiriqlar controller
namespace App\Http\Controllers;
use App\Models\Assigment;
use App\Http\Requests\StoreAssigmentRequest;
use App\Http\Requests\UpdateAssigmentRequest;
use Illuminate\Http\Request;
class AssigmentController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index(Request $request)
{
$id=$request->id;
if(!$id){
$id=1;
}
$assigment=Assigment::find($id)->first();
$assigments=Assigment::all();
$assigment->tests;
// return $assigments;
return view('home',[
'assigmentsalom'=>$assigment,
'assigments'=>$assigments
]);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view('admin.dashboard.create');
}
/**
* Store a newly created resource in storage.
*
* @param \App\Http\Requests\StoreAssigmentRequest $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$assigment=Assigment::create([
'title'=>$request->title,
'lecture'=>$request->lecture,
'practical'=>$request->practical
]);
$assigment->tests()->create(['test'=>$request->test]);
return redirect()->route('home');
}
/**
* Display the specified resource.
*
* @param \App\Models\Assigment $assigment
* @return \Illuminate\Http\Response
*/
public function show(Assigment $assigment)
{
$tests=$assigment->tests;
return view('admin.dashboard.show',[
'assigment'=>$assigment,
'tests'=>$tests
]);
}
/**
* Show the form for editing the specified resource.
*
* @param \App\Models\Assigment $assigment
* @return \Illuminate\Http\Response
*/
public function edit(Assigment $assigment)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \App\Http\Requests\UpdateAssigmentRequest $request
* @param \App\Models\Assigment $assigment
* @return \Illuminate\Http\Response
*/
public function update(UpdateAssigmentRequest $request, Assigment $assigment)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param \App\Models\Assigment $assigment
* @return \Illuminate\Http\Response
*/
public function destroy(Assigment $assigment)
{
//
}
public function image_upload(Request $request)
{if ($request->hasFile('upload')) {
$originName = $request->file('upload')->getClientOriginalName();
$fileName = pathinfo($originName, PATHINFO_FILENAME);
$extension = $request->file('upload')->getClientOriginalExtension();
$fileName = $fileName . '_' . time() . '.' . $extension;
$request->file('upload')->move(public_path('media'), $fileName);
$url = '/media/' . $fileName;
return response()->json(['fileName' => $fileName, 'uploaded'=> 1, 'url' => $url]);
}
}
}
Topshiriqlar modeli:
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Assigment extends Model
{
use HasFactory;
protected $fillable = [
'lecture', 'practical','title'
];
public function tests()
{
return $this->hasMany(Test::class, 'assigments_id');
}
}
Dostları ilə paylaş: |