This file contains hidden or 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
@if ($errors->any()) | |
<div class="alert alert-danger"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" >× </button> | |
@foreach($errors->all() as $error) | |
<p>{{ $error }}</p> | |
@endforeach | |
</div> | |
@endif |
This file contains hidden or 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> | |
$.ajaxSetup({ | |
headers: { | |
'X-CSRF-TOKEN': '{{csrf_token()}}' | |
} | |
}); | |
$('.btn__delete').on('click', function (e) { | |
var boardID = '{{ $board->id }}'; | |
var boardUri = '{{ $board->board_uri }}'; |
This file contains hidden or 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
$query = Plan::with('movie') | |
->select( | |
'ML_ID', | |
DB::raw('count(ML_ID) as cnt'), | |
DB::raw("count(if(PLAN_STAT = 'Y',PLAN_STAT, null)) as Y"), | |
DB::raw("count(if(PLAN_STAT = 'N',PLAN_STAT, null)) as N"), | |
DB::raw("count(if(PLAN_STAT = 'P',PLAN_STAT, null)) as P") | |
) | |
->groupby('ML_ID') | |
->havingRaw('count(ML_ID)>0 AND ML_ID != ""') |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
$('input[name="daterange"]').daterangepicker({ | |
locale: { | |
format: 'YYYY-MM-DD', | |
"separator": " ~ ", | |
"daysOfWeek": ["일","월","화","수","목","금","토"], | |
"monthNames": ["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"] | |
}, | |
startDate: '{{ \Carbon\Carbon::now()->subMonths(1)->toDateString() }}', | |
endDate: '{{ \Carbon\Carbon::now()->toDateString() }}' | |
}); |
NewerOlder