@extends('layouts.main')

@section('content')
 

<section class="content-header">
	
	<h1>Cron Management</h1>
    
	<ol class="breadcrumb">
        
		<li><a href="/home"><i class="fa fa-dashboard"></i>Home</a></li>
        
		<li><a href="#">Cron</a></li>
	
	</ol>

</section>

<hr style="border: 3px groove #3c8dbc;">

<section class="content">



	<div class="row">
	
		<div class="col-xs-12">
		
			<div class="box box-info">
			
				<div class="box-header">

					<div class="alert alert-success hide" id="cron_success"></div>
                
					<div class="alert alert-danger hide" id="cron_danger"></div>
					 
					<a class="btn btn-primary" href="{{ route('home') }}"> Back</a>
                
					<a class="btn btn-danger cron_trash" href="#"> Go To Trash</a>
				
					<!-- <a class="btn btn-success pull-right invoice_createbtn" href="#"> Add New Invoice</a> -->
				
					@if ($message = Session::get('success'))
				
						<div class="alert alert-success">
							<p>{{ $message }}</p>
						</div>
					
					@endif
				
				</div>
				
				<div class="box-body">
				
					<table class="dataTables_wrapper table table-responsive" id="crontable">
					
						<thead>
						
							<tr>
							
								<th class="txt-center">No</th>
								
								<th class="txt-center">Cron Name</th>
								
								<th class="txt-center">Action</th>
							
							</tr>
						
						</thead>
						
						<tbody>
							@foreach($data as $value)
								
								<tr>

									<td class="txt-center"></td>

									<td class="txt-center">{{ $value->cron_name }}</td>

									<td class="txt-center"><a class="btn btn-success cron_runbtn" data-id="{{ $value->id }}"> Run Cron</a></td>
								
								</tr>
							
							@endforeach
						
						</tbody>
					
					</table>
				
				</div>
			
			</div>
		
		</div>
	
	</div>

</section>

			 


@endsection