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\Providers; | |
use Illuminate\Support\Facades\View as ViewFacade; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\View\View; | |
use Statamic\Widgets\Loader; | |
class RunwayViewServiceProvider extends ServiceProvider |
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\Services; | |
use App\Services\Contracts\CRM as CRMContract; | |
class CRM implements CRMContract | |
{ | |
public function sendEmail(array $contactIds, $emailEntry) : array |
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
import axios from 'axios' | |
import toast from './toast' | |
function errorResponseHandler(error) { | |
// check for errorHandle config | |
if( error.config.hasOwnProperty('errorHandle') && error.config.errorHandle === false ) { | |
return Promise.reject(error); | |
} | |
// if has response show the error |
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
// Colors | |
$defaultSpinnerColor: #dbdbdb; | |
$primarySpinnerColor: #f0704b; | |
$lightSpinnerColor: #f3f3f3; | |
$darkSpinnerColor: #060303; | |
// Misc | |
$spinnerDefaultSize: 1rem; | |
$disabledUiOpacity: 0.7; |
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
<template> | |
<div :class="{'loading': loading}" class="pager-data-wrapper"> | |
<!-- Pagination Slot --> | |
<slot :result="getResult()"> | |
<div class="text-center alert-info pb-3"> | |
<span v-if="!loading"> | |
{{ result.length }} items found. render it using v-for="item in result" | |
</span> | |
<span v-if="loading"> |
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 $dropzoneId = isset($dz_id) ? $dz_id : str_random(8); @endphp | |
<div id="{{$dropzoneId}}" class="dropzone"> | |
<div class="dz-default dz-message"> | |
<h3>{{ $title or 'Drop files here or click to upload.'}}</h3> | |
<p class="text-muted">{{ $desc or 'Any related files you can upload' }} <br> | |
<small>One file can be max {{ config('attachment.max_size', 0) / 1000 }} MB</small></p> | |
</div> | |
</div> | |
<!-- Dropzone {{ $dropzoneId }} --> |