This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param string $direction | |
* @return array | |
*/ | |
public function lineFormat($direction = 'credit'): array | |
{ | |
return [ | |
0 => [ | |
'element' => 'INT_TYP', | |
'length' => 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function map() | |
{ | |
return [ | |
/** | |
* line 4: | |
*/ | |
4 => [ | |
1 => ['grid_name'], | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function checkConflicts(array $daysOfWeek, array $timeSpan, $callQueueId, $callQueueTimeSpanId = null) | |
{ | |
$conflicts = 0; | |
if ($callQueueTimeSpanId) { | |
foreach ($daysOfWeek as $dayOfWeek) { | |
$conflicts += CallQueueTimeSpan::where('call_group_id', $callQueueId) | |
->where('id', '!=', $callQueueTimeSpanId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function checkConflicts(array $daysOfWeek, array $timeSpan, $callQueueGroupId, $callQueueGroupTimeSpanId = null) | |
{ | |
$conflicts = 0; | |
if ($callQueueGroupTimeSpanId) { | |
foreach ($daysOfWeek as $dayOfWeek) { | |
$conflicts += CallQueueGroupTimeSpan::where('call_queue_group_id', $callQueueGroupId) | |
->where('id', '!=', $callQueueGroupeTimeSpanId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// function checkTypeCount() { | |
// | |
// $(".type").change(function () { | |
// let type = $(this).val(); | |
// | |
// let typeCount = 0; | |
// | |
// if (type=='m') { | |
// typeCount = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="accordion" class="accordion mt-3"> | |
<div class="card mt-1"> | |
<div class="card-header" id="headingOne" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne"> | |
<h5 class="mb-0"> | |
<button class="btn btn-link collapsed" type="button"> | |
Title 1 | |
</button> | |
</h5> | |
</div> | |
<div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordion"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\ConfigOvh; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Session; | |
use Ovh\Api; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function handle() | |
{ | |
// I get manually the data from Strava | |
$start = '2020-04-25'; | |
$data['2020']['mileage'] = 2183.5; | |
$data['2020']['time'] = 231; | |
$data['2021']['mileage'] = 526.5; | |
$data['2021']['time'] = 49; | |
$mileage = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function store(Request $request) | |
{ | |
//app('log')->debug(request()->all()); | |
$body = "body-html"; | |
$body = $request->$body; | |
if (! $body) { | |
$body = ''; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Import | |
{ | |
public function prospects() | |
{ | |
$file = 'axonaut/prospects.csv'; | |
if (Storage::disk('ftp')->exists($file)) { | |
$data = Storage::disk('ftp')->get($file); | |
$lines = explode("\n", $data); |
NewerOlder