@extends('layouts.default')
@section('title', 'Batch List')
@section('header-links')
@include('includes.headers.batches')
@endsection
@section('new_button')
{!! Form::text('search', request('search'), ['id'=>'tableSearch','class' => 'form-control input-filter input-sm', 'placeholder' => 'Search here']) !!}
search
addCreate batch
@endsection
@section('content')
Batch ID |
Batch Name |
Technologies |
Trainers |
Start Date |
End Date |
Status |
Action |
@foreach($batches as $batch)
@php
$tnames = '';
@endphp
@foreach ($batch->btechnologies as $tech)
@if(array_key_exists($tech->technology_id, $technologies))
@php
$tnames = ($tnames!='')?($tnames.', '. $technologies[$tech->technology_id]):($tnames.''.$technologies[$tech->technology_id]);
@endphp
@endif
@endforeach
{{ $batch->batch_id }} |
{{ ucwords($batch->name) }} |
{{ Str::limit($tnames, 15) }}
|
{{ $batch->trainer->name }} |
{{ Date::parse($batch->start_date)->format(env('APP_DATE')) }} |
{{ Date::parse($batch->end_date)->format(env('APP_DATE')) }} |
{{ $batch->status==1?'Active':'Inactive' }} |
create
|
@endforeach
@if(count($batches) == 0)
No data |
@endif
@stop