@extends('layouts.app') @section('content')

Training Resources

Add Post
@if ($message = Session::get('success'))
{{ $message }}
@endif
@forelse ($trainings as $training) @if ($training->type == 'surface_sheet' && $training->surface_sheet != null)
@if((pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "png") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "JPG"))
@elseif((pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "ppt"))
@elseif((pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->surface_sheet, PATHINFO_EXTENSION) == "MP3") )
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@forelse ($trainings as $training) @if ($training->type == 'mud_map' && $training->mud_map != null)
@if((pathinfo($training->mud_map, PATHINFO_EXTENSION) == "png") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "JPG"))
@elseif((pathinfo($training->mud_map, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->mud_map, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->mud_map, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->mud_map, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "MP3") )
@elseif((pathinfo($training->mud_map, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->mud_map, PATHINFO_EXTENSION) == "ppt"))
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@forelse ($trainings as $training) @if ($training->type == 'underwater_sheet' && $training->underwater_sheet != null)
@if((pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "png") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "JPG"))
@elseif((pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "MP3") )
@elseif((pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->underwater_sheet, PATHINFO_EXTENSION) == "ppt"))
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@forelse ($trainings as $training) @if ($training->type == 'photo_condition' && $training->photo_condition != null)
@if((pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "png") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "JPG"))
@elseif((pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "MP3") )
@elseif((pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->photo_condition, PATHINFO_EXTENSION) == "ppt"))
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@forelse ($trainings as $training) @if ($training->type == 'video_transect' && $training->video_transect != null)
@if((pathinfo($training->video_transect, PATHINFO_EXTENSION) == "png") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "JPG"))
@elseif((pathinfo($training->video_transect, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->video_transect, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->video_transect, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->video_transect, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "ppt"))
@elseif((pathinfo($training->video_transect, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->video_transect, PATHINFO_EXTENSION) == "MP3") )
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@forelse ($trainings as $training) @if ($training->type == 'photogrammetry' && $training->photogrammetry != null)
@if((pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "png") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "JPG"))
@elseif((pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "MP3") )
@elseif((pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->photogrammetry, PATHINFO_EXTENSION) == "ppt"))
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@forelse ($trainings as $training) @if ($training->type == 'other' && $training->other != null)
@if((pathinfo($training->other, PATHINFO_EXTENSION) == "png") || (pathinfo($training->other, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->other, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->other, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->other, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->other, PATHINFO_EXTENSION) == "JPG"))
@elseif((pathinfo($training->other, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->other, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->other, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->other, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->other, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->other, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->other, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->other, PATHINFO_EXTENSION) == "MP3") )
@elseif((pathinfo($training->other, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->other, PATHINFO_EXTENSION) == "ppt"))
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@forelse ($trainings as $training) @if ($training->type == 'marine' && $training->marine != null)
@if((pathinfo($training->marine, PATHINFO_EXTENSION) == "png") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "jpg") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "gif") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "svg") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "jpeg") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "JPG") )
@elseif((pathinfo($training->marine, PATHINFO_EXTENSION) == "xls") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "xlsx"))
@elseif(pathinfo($training->marine, PATHINFO_EXTENSION) == "pdf")
@elseif(pathinfo($training->marine, PATHINFO_EXTENSION) == "docx")
@elseif((pathinfo($training->marine, PATHINFO_EXTENSION) == "mp4") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "MP4") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "mp3") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "MP3") )
@elseif((pathinfo($training->marine, PATHINFO_EXTENSION) == "pptx") || (pathinfo($training->marine, PATHINFO_EXTENSION) == "ppt"))
@endif
Title : {{$training->title}}
@if($training->user)
Uploaded by : {{$training->user->fname.', '.$training->created_at->format('Y-m-d H:i')}}
@else
Uploaded by : {{$training->created_at->format('Y-m-d H:i')}}
@endif
@endif @empty
No post yet
@endforelse
@endsection @section('scripts') @endsection