<commit_before>@extends("layout")
@section("content")
    <div class="col-md-12">
        <fieldset>
        	<legend class="row">Availability Entry</legend>
			@if ($locked)
				<div class="row">
					<div class="alert alert-danger">
						Availability Changes have been Disabled!
					</div>
				</div>
			@else
				@if (Session::get('success'))
					<div class="row">
						<div class="alert alert-info text-center">
							Changes have been saved!
						</div>
					</div>
				@endif
				<div class="row">
					<p>Please select availability:</p>
				</div>

				<div class="row">
					<div class="col-md-4">
						<button id="unavailable" class="availability btn btn-block btn-lg btn-default" value="" >Unavailable</button>
					</div>
					<div class="col-md-4">
						<button id="available" class="availability btn btn-block btn-lg btn-warning" value="warning" >Available</button>
					</div>
					<div class="col-md-4">
						<button id="prefered" class="availability btn btn-block btn-lg btn-success" value="success" >Prefered</button>
					</div>
				</div>

				<br>

				<div class="row">
					Apply availability to schedule:
				</div>
			@endif
			<br>

			<div class="row">
	        	<table class="table table-striped table-bordered table-condensed">
		        	<thead>
		        		<tr>
		        			<th class="col-md-2">Time</th>
		        			@foreach ($days as $day)
								<th>{{ $day }}</th>
		        			@endforeach
		        		</tr>
		        	</thead>
		        	<tbody id="selectable">
						@for ($i = $time['start']; $i < $time['end']; $i+=50)
							<tr>
								<td>
									{{ str_pad(intval($i/100), 2, "0", STR_PAD_LEFT) }}:{{ str_pad($i%100/100*60, 2, "0", STR_PAD_LEFT) }}
									 - 
									{{ str_pad(intval(($i+50)/100), 2, "0", STR_PAD_LEFT) }}:{{ str_pad(($i+50)%100/100*60, 2, "0", STR_PAD_LEFT) }}
								</td>

			        			@foreach ($days as $day)
									<td id="{{ $day }}-{{ str_pad($i, 4, '0', STR_PAD_LEFT) }}"
										@if ( isset($week[$day][$i]) )
											@if ($week[$day][$i])
												class="success"
											@else
												class="warning"
											@endif
										@endif
									></td>
								@endforeach

							</tr>	
			        	@endfor
		        		
		        	</tbody>
		        </table><commit_msg>Modified the TA availability table, Centered all columns<commit_after>@extends("layout")
@section("content")
    <div class="col-md-12">
        <fieldset>
        	<legend class="row">Availability Entry</legend>
			@if ($locked)
				<div class="row">
					<div class="alert alert-danger">
						Availability Changes have been Disabled!
					</div>
				</div>
			@else
				@if (Session::get('success'))
					<div class="row">
						<div class="alert alert-info text-center">
							Changes have been saved!
						</div>
					</div>
				@endif
				<div class="row">
					<p>Please select availability:</p>
				</div>

				<div class="row">
					<div class="col-md-4">
						<button id="unavailable" class="availability btn btn-block btn-lg btn-default" value="" >Unavailable</button>
					</div>
					<div class="col-md-4">
						<button id="available" class="availability btn btn-block btn-lg btn-warning" value="warning" >Available</button>
					</div>
					<div class="col-md-4">
						<button id="prefered" class="availability btn btn-block btn-lg btn-success" value="success" >Prefered</button>
					</div>
				</div>

				<br>

				<div class="row">
					Apply availability to schedule:
				</div>
			@endif
			<br>

			<div class="row">
	        	<table class="table table-striped table-bordered table-condensed">
		        	<thead>
		        		<tr>
		        			<th class="text-center">Time</th>
		        			@foreach ($days as $day)
								<th class="text-center">{{ $day }}</th>
		        			@endforeach
		        		</tr>
		        	</thead>
		        	<tbody id="selectable">
						@for ($i = $time['start']; $i < $time['end']; $i+=50)
							<tr>
								<td class="text-center">
									{{ str_pad(intval($i/100), 2, "0", STR_PAD_LEFT) }}:{{ str_pad($i%100/100*60, 2, "0", STR_PAD_LEFT) }}
									 - 
									{{ str_pad(intval(($i+50)/100), 2, "0", STR_PAD_LEFT) }}:{{ str_pad(($i+50)%100/100*60, 2, "0", STR_PAD_LEFT) }}
								</td>

			        			@foreach ($days as $day)
									<td id="{{ $day }}-{{ str_pad($i, 4, '0', STR_PAD_LEFT) }}"
										@if ( isset($week[$day][$i]) )
											@if ($week[$day][$i])
												class="success"
											@else
												class="warning"
											@endif
										@endif
									></td>
								@endforeach

							</tr>	
			        	@endfor
		        		
		        	</tbody>
		        </table>
{'fraction_non_alphanumeric': 0.18424451140766251, 'fraction_numerical': 0.018725785622040466, 'mean_word_length': 2.011665586519767, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2252186', 'n_tokens_mistral': 2280, 'n_tokens_neox': 1567, 'n_words': 342}