repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2018_03_08_100602_campaign_devices.php | Campaign/extensions/campaign-module/database/migrations/2018_03_08_100602_campaign_devices.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CampaignDevices extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->json("devices")->nullable(true);
});
DB::statement("UPDATE campaigns SET devices = '[\"desktop\", \"mobile\"]'");
Schema::table('campaigns', function (Blueprint $table) {
$table->json("devices")->nullable(false)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->dropColumn("devices");
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2021_07_21_074210_add_variables_table.php | Campaign/extensions/campaign-module/database/migrations/2021_07_21_074210_add_variables_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddVariablesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('variables', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->unique();
$table->mediumText('value');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('variables');
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2018_01_21_101505_campaign_banners_pivot_table.php | Campaign/extensions/campaign-module/database/migrations/2018_01_21_101505_campaign_banners_pivot_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CampaignBannersPivotTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('campaign_banners', function (Blueprint $table) {
$table->increments('id');
$table->integer('campaign_id')->unsigned();
$table->integer('banner_id')->unsigned();
$table->string('variant');
$table->foreign('banner_id')->references('id')->on('banners');
$table->foreign('campaign_id')->references('id')->on('campaigns');
});
// migrate data to new structure
foreach (DB::query()->from('campaigns')->get() as $campaign) {
DB::table('campaign_banners')->insert([
'campaign_id' => $campaign->id,
'banner_id' => $campaign->banner_id,
'variant' => 'A',
]);
if ($campaign->alt_banner_id) {
DB::table('campaign_banners')->insert([
'campaign_id' => $campaign->id,
'banner_id' => $campaign->alt_banner_id,
'variant' => 'B',
]);
}
}
// refresh campaign cache
foreach (\Remp\CampaignModule\Campaign::all() as $campaign) {
$campaign->cache();
}
Schema::table('campaigns', function (Blueprint $table) {
$table->dropForeign(['banner_id']);
$table->dropForeign(['alt_banner_id']);
$table->dropColumn(['banner_id', 'alt_banner_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->integer('banner_id')->unsigned()->nullable(true)->after('active');
$table->integer('alt_banner_id')->unsigned()->nullable(true)->after('banner_id');
$table->foreign('banner_id')->references('id')->on('banners');
$table->foreign('alt_banner_id')->references('id')->on('banners');
});
// migrate data to old structure
foreach (DB::query()->from('campaign_banners')->get() as $row) {
$query = DB::table('campaigns')->where([
'id' => $row->campaign_id,
]);
if ($row->variant === 'A') {
$query->update([
'banner_id' => $row->banner_id,
]);
} elseif ($row->variant === 'B') {
$query->update([
'alt_banner_id' => $row->banner_id,
]);
}
}
// refresh campaign cache
foreach (\Remp\CampaignModule\Campaign::all() as $campaign) {
$campaign->cache();
}
Schema::table('campaigns', function (Blueprint $table) {
$table->integer('banner_id')->unsigned()->nullable(false)->after('active')->change();
});
Schema::drop('campaign_banners');
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2019_06_04_081634_add_expand_and_collapse_text_to_collapsible_bar_template.php | Campaign/extensions/campaign-module/database/migrations/2019_06_04_081634_add_expand_and_collapse_text_to_collapsible_bar_template.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddExpandAndCollapseTextToCollapsibleBarTemplate extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('collapsible_bar_templates', function (Blueprint $table) {
$table->string('collapse_text');
$table->string('expand_text');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('collapsible_bar_templates', function (Blueprint $table) {
$table->dropColumn('collapse_text');
$table->dropColumn('expand_text');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2021_02_22_084635_banner_template_texts.php | Campaign/extensions/campaign-module/database/migrations/2021_02_22_084635_banner_template_texts.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class BannerTemplateTexts extends Migration
{
public function up()
{
Schema::table('bar_templates', function(Blueprint $table) {
$table->text('main_text')->change();
$table->text('button_text')->change();
});
Schema::table('collapsible_bar_templates', function(Blueprint $table) {
$table->text('header_text')->change();
$table->text('main_text')->change();
$table->text('button_text')->change();
});
Schema::table('medium_rectangle_templates', function(Blueprint $table) {
$table->text('header_text')->change();
$table->text('main_text')->change();
$table->text('button_text')->change();
});
Schema::table('overlay_rectangle_templates', function(Blueprint $table) {
$table->text('header_text')->change();
$table->text('main_text')->change();
$table->text('button_text')->change();
});
Schema::table('overlay_two_buttons_signature_templates', function(Blueprint $table) {
$table->text('text_before')->change();
$table->text('text_after')->change();
$table->text('text_signature')->change();
});
Schema::table('short_message_templates', function(Blueprint $table) {
$table->text('text')->change();
});
}
public function down()
{
Schema::table('bar_templates', function(Blueprint $table) {
$table->string('main_text')->change();
$table->string('button_text')->change();
});
Schema::table('collapsible_bar_templates', function(Blueprint $table) {
$table->string('header_text')->change();
$table->string('main_text')->change();
$table->string('button_text')->change();
});
Schema::table('medium_rectangle_templates', function(Blueprint $table) {
$table->string('header_text')->change();
$table->string('main_text')->change();
$table->string('button_text')->change();
});
Schema::table('overlay_rectangle_templates', function(Blueprint $table) {
$table->string('header_text')->change();
$table->string('main_text')->change();
$table->string('button_text')->change();
});
Schema::table('overlay_two_buttons_signature_templates', function(Blueprint $table) {
$table->string('text_before')->change();
$table->string('text_after')->change();
$table->string('text_signature')->change();
});
Schema::table('short_message_templates', function(Blueprint $table) {
$table->string('text')->change();
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2021_08_13_140150_add_pageview_attributes_column_to_campaigns.php | Campaign/extensions/campaign-module/database/migrations/2021_08_13_140150_add_pageview_attributes_column_to_campaigns.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddPageviewAttributesColumnToCampaigns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->json('pageview_attributes')
->after('pageview_rules')
->nullable(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->dropColumn('pageview_attributes');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2018_04_04_100549_html_template_text_size.php | Campaign/extensions/campaign-module/database/migrations/2018_04_04_100549_html_template_text_size.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class HtmlTemplateTextSize extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('html_templates', function (Blueprint $table) {
$table->text('text')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('html_templates', function (Blueprint $table) {
$table->string('text', 191)->change();
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2017_09_18_143615_banner_templates.php | Campaign/extensions/campaign-module/database/migrations/2017_09_18_143615_banner_templates.php | <?php
use Remp\CampaignModule\Banner;
use Remp\CampaignModule\HtmlTemplate;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class BannerTemplates extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('html_templates', function (Blueprint $table) {
$table->increments('id');
$table->integer('banner_id')->unsigned();
$table->string('text');
$table->string('dimensions');
$table->string('text_align');
$table->string('text_color');
$table->string('font_size');
$table->string('background_color');
$table->foreign('banner_id')->references('id')->on('banners');
$table->timestamps();
});
Schema::create('medium_rectangle_templates', function (Blueprint $table) {
$table->increments('id');
$table->integer('banner_id')->unsigned();
$table->string('header_text');
$table->string('main_text');
$table->string('button_text');
$table->string('background_color');
$table->foreign('banner_id')->references('id')->on('banners');
$table->timestamps();
});
Schema::table('banners', function (Blueprint $table) {
$table->dropColumn('text');
$table->dropColumn('dimensions');
$table->dropColumn('text_align');
$table->dropColumn('text_color');
$table->dropColumn('font_size');
$table->dropColumn('background_color');
$table->string('template');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('banners', function (Blueprint $table) {
$table->dropColumn('template');
$table->string('text');
$table->string('dimensions');
$table->string('text_align');
$table->string('text_color');
$table->string('font_size');
$table->string('background_color');
});
Schema::drop('medium_rectangle_templates');
Schema::drop('html_templates');
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2018_05_23_124131_optional_banner_url.php | Campaign/extensions/campaign-module/database/migrations/2018_05_23_124131_optional_banner_url.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class OptionalBannerUrl extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('banners', function (Blueprint $table) {
$table->string('target_url', 191)->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('banners', function (Blueprint $table) {
$table->string('target_url', 191)->nullable(false)->change();
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2019_07_24_083210_remove_center_positions.php | Campaign/extensions/campaign-module/database/migrations/2019_07_24_083210_remove_center_positions.php | <?php
use Illuminate\Database\Migrations\Migration;
class RemoveCenterPositions extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$sql = <<<SQL
UPDATE `banners` SET `position` = null WHERE `position` IN ('center', 'middle_left', 'middle_right');
SQL;
\Illuminate\Support\Facades\DB::update($sql);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2017_11_09_092137_banner_closeable_required.php | Campaign/extensions/campaign-module/database/migrations/2017_11_09_092137_banner_closeable_required.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class BannerCloseableRequired extends Migration
{
public function up()
{
DB::getPdo()->exec('UPDATE banners SET closeable = false WHERE closeable IS NULL');
Schema::table('banners', function (Blueprint $table) {
$table->boolean("closeable")->nullable(false)->change();
});
}
public function down()
{
Schema::table('banners', function (Blueprint $table) {
$table->boolean("closeable")->nullable(true)->change();
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2021_05_27_000000_add_uuid_to_failed_jobs_table.php | Campaign/extensions/campaign-module/database/migrations/2021_05_27_000000_add_uuid_to_failed_jobs_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
class AddUuidToFailedJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table->string('uuid')->after('id')->nullable()->unique();
});
DB::table('failed_jobs')->whereNull('uuid')->cursor()->each(function ($job) {
DB::table('failed_jobs')
->where('id', $job->id)
->update(['uuid' => (string)Str::uuid()]);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table->dropColumn('uuid');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2020_03_12_083931_make_texts_nullable_in_banners.php | Campaign/extensions/campaign-module/database/migrations/2020_03_12_083931_make_texts_nullable_in_banners.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MakeTextsNullableInBanners extends Migration
{
public function up()
{
Schema::table('collapsible_bar_templates', function (Blueprint $table) {
$table->string('header_text')->nullable(true)->change();
$table->string('main_text')->nullable(true)->change();
$table->string('button_text')->nullable(true)->change();
$table->string('collapse_text')->nullable(true)->change();
$table->string('expand_text')->nullable(true)->change();
});
Schema::table('medium_rectangle_templates', function (Blueprint $table) {
$table->string('header_text')->nullable(true)->change();
$table->string('main_text')->nullable(true)->change();
$table->string('button_text')->nullable(true)->change();
});
Schema::table('bar_templates', function (Blueprint $table) {
$table->string('main_text')->nullable(true)->change();
$table->string('button_text')->nullable(true)->change();
});
}
public function down()
{
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2017_09_21_090625_medium_rectangle_color_schemes.php | Campaign/extensions/campaign-module/database/migrations/2017_09_21_090625_medium_rectangle_color_schemes.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MediumRectangleColorSchemes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('medium_rectangle_templates', function (Blueprint $table) {
$table->string('text_color')->default('#ffffff');
$table->string('button_background_color')->default('#000000');
$table->string('button_text_color')->default('#ffffff');
});
Schema::table('medium_rectangle_templates', function (Blueprint $table) {
$table->string('text_color')->default(null)->change();
$table->string('button_background_color')->default(null)->change();
$table->string('button_text_color')->default(null)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('medium_rectangle_templates', function (Blueprint $table) {
$table->dropColumn(['text_color', 'button_background_color', 'button_text_color']);
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2019_02_19_113331_campaign_referer_filter.php | Campaign/extensions/campaign-module/database/migrations/2019_02_19_113331_campaign_referer_filter.php | <?php
use Remp\CampaignModule\Campaign;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CampaignRefererFilter extends Migration
{
public function up()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->string('referer_filter');
$table->json('referer_patterns')->nullable();
});
DB::statement('UPDATE campaigns SET referer_filter = :filter', [
'filter' => Campaign::URL_FILTER_EVERYWHERE
]);
Schema::table('campaigns', function (Blueprint $table) {
$table->string('referer_filter')->nullable(false)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->dropColumn('referer_filter');
$table->dropColumn('referer_patterns');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2025_02_24_160123_add_operating_systems_column_to_campaigns.php | Campaign/extensions/campaign-module/database/migrations/2025_02_24_160123_add_operating_systems_column_to_campaigns.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddOperatingSystemsColumnToCampaigns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->json('operating_systems')->nullable(true)->default(null)->after('devices');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->dropColumn('operating_systems');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2024_04_17_091341_refactor_referer_related_columns_to_source_in_campaigns_table.php | Campaign/extensions/campaign-module/database/migrations/2024_04_17_091341_refactor_referer_related_columns_to_source_in_campaigns_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RefactorRefererRelatedColumnsToSourceInCampaignsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->renameColumn('referer_filter', 'source_filter');
$table->renameColumn('referer_patterns', 'source_patterns');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->renameColumn('source_filter', 'referer_filter');
$table->renameColumn('source_patterns', 'referer_patterns');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2018_04_04_115717_html_templates_css.php | Campaign/extensions/campaign-module/database/migrations/2018_04_04_115717_html_templates_css.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class HtmlTemplatesCss extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('html_templates', function (Blueprint $table) {
$table->text('css')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('html_templates', function (Blueprint $table) {
$table->dropColumn('css');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2019_10_10_175000_add_inclusive_column_to_campaign.php | Campaign/extensions/campaign-module/database/migrations/2019_10_10_175000_add_inclusive_column_to_campaign.php |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddInclusiveColumnToCampaign extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaign_segments', function (Blueprint $table) {
$table->boolean('inclusive')->nullable(false)->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaign_segments', function (Blueprint $table) {
$table->dropColumn('inclusive');
});
}
} | php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2019_03_20_122709_create_campaign_banner_stats_table.php | Campaign/extensions/campaign-module/database/migrations/2019_03_20_122709_create_campaign_banner_stats_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCampaignBannerStatsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('campaign_banner_stats', function (Blueprint $table) {
$table->increments('id');
$table->integer('campaign_banner_id')->unsigned();
$table->timestamp('time_from')->nullable();
$table->timestamp('time_to')->nullable();
$table->integer('click_count');
$table->integer('show_count');
$table->integer('payment_count');
$table->integer('purchase_count');
$table->foreign('campaign_banner_id')->references('id')->on('campaign_banners');
$table->index('time_from');
$table->index('time_to');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('campaign_banner_stats');
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2017_05_25_094215_banner_closability.php | Campaign/extensions/campaign-module/database/migrations/2017_05_25_094215_banner_closability.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class BannerClosability extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('banners', function (Blueprint $table) {
$table->integer('display_delay');
$table->boolean('closeable');
$table->integer('close_timeout')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('banners', function (Blueprint $table) {
$table->dropColumn(['display_delay', 'closeable', 'close_timeout']);
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2020_10_23_092701_newsletter_rectangle_template.php | Campaign/extensions/campaign-module/database/migrations/2020_10_23_092701_newsletter_rectangle_template.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class NewsletterRectangleTemplate extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('newsletter_rectangle_templates', function (Blueprint $table) {
$table->increments('id');
$table->integer('banner_id')->unsigned();
$table->string('newsletter_id');
$table->string('btn_submit');
$table->string('title')->nullable(true);
$table->text('text')->nullable(true);
$table->text('success')->nullable(true);
$table->text('failure')->nullable(true);
$table->text('terms')->nullable(true);
$table->string('text_color')->nullable(true);
$table->string('background_color')->nullable(true);
$table->string('button_background_color')->nullable(true);
$table->string('button_text_color')->nullable(true);
$table->string('width')->nullable(true);
$table->string('height')->nullable(true);
$table->foreign('banner_id')->references('id')->on('banners');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('newsletter_rectangle_templates');
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2019_07_15_100156_html_overlay_template.php | Campaign/extensions/campaign-module/database/migrations/2019_07_15_100156_html_overlay_template.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class HtmlOverlayTemplate extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('html_overlay_templates', function (Blueprint $table) {
$table->increments('id');
$table->integer('banner_id')->unsigned();
$table->text('text');
$table->string('text_align')->nullable(true);
$table->string('text_color');
$table->string('font_size')->nullable(true);
$table->string('background_color');
$table->text('css')->nullable();
$table->foreign('banner_id')->references('id')->on('banners');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('html_overlay_templates');
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2023_11_21_084246_added_index_to_campaign_updated_at_and_created_at_columns.php | Campaign/extensions/campaign-module/database/migrations/2023_11_21_084246_added_index_to_campaign_updated_at_and_created_at_columns.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddedIndexToCampaignUpdatedAtAndCreatedAtColumns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->index('created_at');
$table->index('updated_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->dropIndex(['created_at']);
$table->dropIndex(['updated_at']);
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2017_04_06_065921_banners_table.php | Campaign/extensions/campaign-module/database/migrations/2017_04_06_065921_banners_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class BannersTable extends Migration
{
public function up()
{
Schema::create('banners', function (Blueprint $table) {
$table->increments('id');
$table->uuid('uuid');
$table->string('name');
$table->string('storage_uri');
$table->string('transition');
$table->integer('height');
$table->integer('width');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('banners');
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2018_05_15_081111_variants_uuid.php | Campaign/extensions/campaign-module/database/migrations/2018_05_15_081111_variants_uuid.php | <?php
use Ramsey\Uuid\Uuid;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class VariantsUuid extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaign_banners', function (Blueprint $table) {
$table->uuid('uuid');
});
$variants = DB::table('campaign_banners')->get();
foreach ($variants as $variant) {
DB::table('campaign_banners')->where('id', $variant->id)->update([
'uuid' => Uuid::uuid4()->toString()
]);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaign_banners', function (Blueprint $table) {
$table->dropColumn('uuid');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2018_11_14_092905_campaign_url_filter_column.php | Campaign/extensions/campaign-module/database/migrations/2018_11_14_092905_campaign_url_filter_column.php | <?php
use Remp\CampaignModule\Campaign;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CampaignUrlFilterColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->string('url_filter');
$table->json('url_patterns')->nullable();
});
DB::statement('UPDATE campaigns SET url_filter = :filter', [
'filter' => Campaign::URL_FILTER_EVERYWHERE
]);
Schema::table('campaigns', function (Blueprint $table) {
$table->string('url_filter')->nullable(false)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('campaigns', function (Blueprint $table) {
$table->dropColumn('url_filter');
$table->dropColumn('url_patterns');
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/migrations/2019_06_26_112541_add_custom_js_and_includes_columns_to_banners.php | Campaign/extensions/campaign-module/database/migrations/2019_06_26_112541_add_custom_js_and_includes_columns_to_banners.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddCustomJsAndIncludesColumnsToBanners extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('banners', function (Blueprint $table) {
$table->text('js')->nullable()->after('close_text');
$table->json('js_includes')->nullable()->after('js');
$table->json('css_includes')->nullable()->after('js_includes');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('banners', function (Blueprint $table) {
$table->dropColumn(['js', 'js_includes', 'css_includes']);
});
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/seeders/CountrySeeder.php | Campaign/extensions/campaign-module/database/seeders/CountrySeeder.php | <?php
namespace Remp\CampaignModule\Database\Seeders;
use Illuminate\Database\Seeder;
use Remp\CampaignModule\Country;
class CountrySeeder extends Seeder
{
/**
* Run the country seeds.
*
* @return void
*/
public function run()
{
// Data source: http://download.geonames.org/export/dump/countryInfo.stxt
$countries = [
['iso_code' => 'AD', 'name' => 'Andorra'],
['iso_code' => 'AE', 'name' => 'United Arab Emirates'],
['iso_code' => 'AF', 'name' => 'Afghanistan'],
['iso_code' => 'AG', 'name' => 'Antigua and Barbuda'],
['iso_code' => 'AI', 'name' => 'Anguilla'],
['iso_code' => 'AL', 'name' => 'Albania'],
['iso_code' => 'AM', 'name' => 'Armenia'],
['iso_code' => 'AO', 'name' => 'Angola'],
['iso_code' => 'AQ', 'name' => 'Antarctica'],
['iso_code' => 'AR', 'name' => 'Argentina'],
['iso_code' => 'AS', 'name' => 'American Samoa'],
['iso_code' => 'AT', 'name' => 'Austria'],
['iso_code' => 'AU', 'name' => 'Australia'],
['iso_code' => 'AW', 'name' => 'Aruba'],
['iso_code' => 'AX', 'name' => 'Aland Islands'],
['iso_code' => 'AZ', 'name' => 'Azerbaijan'],
['iso_code' => 'BA', 'name' => 'Bosnia and Herzegovina'],
['iso_code' => 'BB', 'name' => 'Barbados'],
['iso_code' => 'BD', 'name' => 'Bangladesh'],
['iso_code' => 'BE', 'name' => 'Belgium'],
['iso_code' => 'BF', 'name' => 'Burkina Faso'],
['iso_code' => 'BG', 'name' => 'Bulgaria'],
['iso_code' => 'BH', 'name' => 'Bahrain'],
['iso_code' => 'BI', 'name' => 'Burundi'],
['iso_code' => 'BJ', 'name' => 'Benin'],
['iso_code' => 'BL', 'name' => 'Saint Barthelemy'],
['iso_code' => 'BM', 'name' => 'Bermuda'],
['iso_code' => 'BN', 'name' => 'Brunei'],
['iso_code' => 'BO', 'name' => 'Bolivia'],
['iso_code' => 'BQ', 'name' => 'Bonaire, Saint Eustatius and Saba '],
['iso_code' => 'BR', 'name' => 'Brazil'],
['iso_code' => 'BS', 'name' => 'Bahamas'],
['iso_code' => 'BT', 'name' => 'Bhutan'],
['iso_code' => 'BV', 'name' => 'Bouvet Island'],
['iso_code' => 'BW', 'name' => 'Botswana'],
['iso_code' => 'BY', 'name' => 'Belarus'],
['iso_code' => 'BZ', 'name' => 'Belize'],
['iso_code' => 'CA', 'name' => 'Canada'],
['iso_code' => 'CC', 'name' => 'Cocos Islands'],
['iso_code' => 'CD', 'name' => 'Democratic Republic of the Congo'],
['iso_code' => 'CF', 'name' => 'Central African Republic'],
['iso_code' => 'CG', 'name' => 'Republic of the Congo'],
['iso_code' => 'CH', 'name' => 'Switzerland'],
['iso_code' => 'CI', 'name' => 'Ivory Coast'],
['iso_code' => 'CK', 'name' => 'Cook Islands'],
['iso_code' => 'CL', 'name' => 'Chile'],
['iso_code' => 'CM', 'name' => 'Cameroon'],
['iso_code' => 'CN', 'name' => 'China'],
['iso_code' => 'CO', 'name' => 'Colombia'],
['iso_code' => 'CR', 'name' => 'Costa Rica'],
['iso_code' => 'CU', 'name' => 'Cuba'],
['iso_code' => 'CV', 'name' => 'Cape Verde'],
['iso_code' => 'CW', 'name' => 'Curacao'],
['iso_code' => 'CX', 'name' => 'Christmas Island'],
['iso_code' => 'CY', 'name' => 'Cyprus'],
['iso_code' => 'CZ', 'name' => 'Czechia'],
['iso_code' => 'DE', 'name' => 'Germany'],
['iso_code' => 'DJ', 'name' => 'Djibouti'],
['iso_code' => 'DK', 'name' => 'Denmark'],
['iso_code' => 'DM', 'name' => 'Dominica'],
['iso_code' => 'DO', 'name' => 'Dominican Republic'],
['iso_code' => 'DZ', 'name' => 'Algeria'],
['iso_code' => 'EC', 'name' => 'Ecuador'],
['iso_code' => 'EE', 'name' => 'Estonia'],
['iso_code' => 'EG', 'name' => 'Egypt'],
['iso_code' => 'EH', 'name' => 'Western Sahara'],
['iso_code' => 'ER', 'name' => 'Eritrea'],
['iso_code' => 'ES', 'name' => 'Spain'],
['iso_code' => 'ET', 'name' => 'Ethiopia'],
['iso_code' => 'FI', 'name' => 'Finland'],
['iso_code' => 'FJ', 'name' => 'Fiji'],
['iso_code' => 'FK', 'name' => 'Falkland Islands'],
['iso_code' => 'FM', 'name' => 'Micronesia'],
['iso_code' => 'FO', 'name' => 'Faroe Islands'],
['iso_code' => 'FR', 'name' => 'France'],
['iso_code' => 'GA', 'name' => 'Gabon'],
['iso_code' => 'GB', 'name' => 'United Kingdom'],
['iso_code' => 'GD', 'name' => 'Grenada'],
['iso_code' => 'GE', 'name' => 'Georgia'],
['iso_code' => 'GF', 'name' => 'French Guiana'],
['iso_code' => 'GG', 'name' => 'Guernsey'],
['iso_code' => 'GH', 'name' => 'Ghana'],
['iso_code' => 'GI', 'name' => 'Gibraltar'],
['iso_code' => 'GL', 'name' => 'Greenland'],
['iso_code' => 'GM', 'name' => 'Gambia'],
['iso_code' => 'GN', 'name' => 'Guinea'],
['iso_code' => 'GP', 'name' => 'Guadeloupe'],
['iso_code' => 'GQ', 'name' => 'Equatorial Guinea'],
['iso_code' => 'GR', 'name' => 'Greece'],
['iso_code' => 'GS', 'name' => 'South Georgia and the South Sandwich Islands'],
['iso_code' => 'GT', 'name' => 'Guatemala'],
['iso_code' => 'GU', 'name' => 'Guam'],
['iso_code' => 'GW', 'name' => 'Guinea-Bissau'],
['iso_code' => 'GY', 'name' => 'Guyana'],
['iso_code' => 'HK', 'name' => 'Hong Kong'],
['iso_code' => 'HM', 'name' => 'Heard Island and McDonald Islands'],
['iso_code' => 'HN', 'name' => 'Honduras'],
['iso_code' => 'HR', 'name' => 'Croatia'],
['iso_code' => 'HT', 'name' => 'Haiti'],
['iso_code' => 'HU', 'name' => 'Hungary'],
['iso_code' => 'ID', 'name' => 'Indonesia'],
['iso_code' => 'IE', 'name' => 'Ireland'],
['iso_code' => 'IL', 'name' => 'Israel'],
['iso_code' => 'IM', 'name' => 'Isle of Man'],
['iso_code' => 'IN', 'name' => 'India'],
['iso_code' => 'IO', 'name' => 'British Indian Ocean Territory'],
['iso_code' => 'IQ', 'name' => 'Iraq'],
['iso_code' => 'IR', 'name' => 'Iran'],
['iso_code' => 'IS', 'name' => 'Iceland'],
['iso_code' => 'IT', 'name' => 'Italy'],
['iso_code' => 'JE', 'name' => 'Jersey'],
['iso_code' => 'JM', 'name' => 'Jamaica'],
['iso_code' => 'JO', 'name' => 'Jordan'],
['iso_code' => 'JP', 'name' => 'Japan'],
['iso_code' => 'KE', 'name' => 'Kenya'],
['iso_code' => 'KG', 'name' => 'Kyrgyzstan'],
['iso_code' => 'KH', 'name' => 'Cambodia'],
['iso_code' => 'KI', 'name' => 'Kiribati'],
['iso_code' => 'KM', 'name' => 'Comoros'],
['iso_code' => 'KN', 'name' => 'Saint Kitts and Nevis'],
['iso_code' => 'KP', 'name' => 'North Korea'],
['iso_code' => 'KR', 'name' => 'South Korea'],
['iso_code' => 'XK', 'name' => 'Kosovo'],
['iso_code' => 'KW', 'name' => 'Kuwait'],
['iso_code' => 'KY', 'name' => 'Cayman Islands'],
['iso_code' => 'KZ', 'name' => 'Kazakhstan'],
['iso_code' => 'LA', 'name' => 'Laos'],
['iso_code' => 'LB', 'name' => 'Lebanon'],
['iso_code' => 'LC', 'name' => 'Saint Lucia'],
['iso_code' => 'LI', 'name' => 'Liechtenstein'],
['iso_code' => 'LK', 'name' => 'Sri Lanka'],
['iso_code' => 'LR', 'name' => 'Liberia'],
['iso_code' => 'LS', 'name' => 'Lesotho'],
['iso_code' => 'LT', 'name' => 'Lithuania'],
['iso_code' => 'LU', 'name' => 'Luxembourg'],
['iso_code' => 'LV', 'name' => 'Latvia'],
['iso_code' => 'LY', 'name' => 'Libya'],
['iso_code' => 'MA', 'name' => 'Morocco'],
['iso_code' => 'MC', 'name' => 'Monaco'],
['iso_code' => 'MD', 'name' => 'Moldova'],
['iso_code' => 'ME', 'name' => 'Montenegro'],
['iso_code' => 'MF', 'name' => 'Saint Martin'],
['iso_code' => 'MG', 'name' => 'Madagascar'],
['iso_code' => 'MH', 'name' => 'Marshall Islands'],
['iso_code' => 'MK', 'name' => 'Macedonia'],
['iso_code' => 'ML', 'name' => 'Mali'],
['iso_code' => 'MM', 'name' => 'Myanmar'],
['iso_code' => 'MN', 'name' => 'Mongolia'],
['iso_code' => 'MO', 'name' => 'Macao'],
['iso_code' => 'MP', 'name' => 'Northern Mariana Islands'],
['iso_code' => 'MQ', 'name' => 'Martinique'],
['iso_code' => 'MR', 'name' => 'Mauritania'],
['iso_code' => 'MS', 'name' => 'Montserrat'],
['iso_code' => 'MT', 'name' => 'Malta'],
['iso_code' => 'MU', 'name' => 'Mauritius'],
['iso_code' => 'MV', 'name' => 'Maldives'],
['iso_code' => 'MW', 'name' => 'Malawi'],
['iso_code' => 'MX', 'name' => 'Mexico'],
['iso_code' => 'MY', 'name' => 'Malaysia'],
['iso_code' => 'MZ', 'name' => 'Mozambique'],
['iso_code' => 'NA', 'name' => 'Namibia'],
['iso_code' => 'NC', 'name' => 'New Caledonia'],
['iso_code' => 'NE', 'name' => 'Niger'],
['iso_code' => 'NF', 'name' => 'Norfolk Island'],
['iso_code' => 'NG', 'name' => 'Nigeria'],
['iso_code' => 'NI', 'name' => 'Nicaragua'],
['iso_code' => 'NL', 'name' => 'Netherlands'],
['iso_code' => 'NO', 'name' => 'Norway'],
['iso_code' => 'NP', 'name' => 'Nepal'],
['iso_code' => 'NR', 'name' => 'Nauru'],
['iso_code' => 'NU', 'name' => 'Niue'],
['iso_code' => 'NZ', 'name' => 'New Zealand'],
['iso_code' => 'OM', 'name' => 'Oman'],
['iso_code' => 'PA', 'name' => 'Panama'],
['iso_code' => 'PE', 'name' => 'Peru'],
['iso_code' => 'PF', 'name' => 'French Polynesia'],
['iso_code' => 'PG', 'name' => 'Papua New Guinea'],
['iso_code' => 'PH', 'name' => 'Philippines'],
['iso_code' => 'PK', 'name' => 'Pakistan'],
['iso_code' => 'PL', 'name' => 'Poland'],
['iso_code' => 'PM', 'name' => 'Saint Pierre and Miquelon'],
['iso_code' => 'PN', 'name' => 'Pitcairn'],
['iso_code' => 'PR', 'name' => 'Puerto Rico'],
['iso_code' => 'PS', 'name' => 'Palestinian Territory'],
['iso_code' => 'PT', 'name' => 'Portugal'],
['iso_code' => 'PW', 'name' => 'Palau'],
['iso_code' => 'PY', 'name' => 'Paraguay'],
['iso_code' => 'QA', 'name' => 'Qatar'],
['iso_code' => 'RE', 'name' => 'Reunion'],
['iso_code' => 'RO', 'name' => 'Romania'],
['iso_code' => 'RS', 'name' => 'Serbia'],
['iso_code' => 'RU', 'name' => 'Russia'],
['iso_code' => 'RW', 'name' => 'Rwanda'],
['iso_code' => 'SA', 'name' => 'Saudi Arabia'],
['iso_code' => 'SB', 'name' => 'Solomon Islands'],
['iso_code' => 'SC', 'name' => 'Seychelles'],
['iso_code' => 'SD', 'name' => 'Sudan'],
['iso_code' => 'SS', 'name' => 'South Sudan'],
['iso_code' => 'SE', 'name' => 'Sweden'],
['iso_code' => 'SG', 'name' => 'Singapore'],
['iso_code' => 'SH', 'name' => 'Saint Helena'],
['iso_code' => 'SI', 'name' => 'Slovenia'],
['iso_code' => 'SJ', 'name' => 'Svalbard and Jan Mayen'],
['iso_code' => 'SK', 'name' => 'Slovakia'],
['iso_code' => 'SL', 'name' => 'Sierra Leone'],
['iso_code' => 'SM', 'name' => 'San Marino'],
['iso_code' => 'SN', 'name' => 'Senegal'],
['iso_code' => 'SO', 'name' => 'Somalia'],
['iso_code' => 'SR', 'name' => 'Suriname'],
['iso_code' => 'ST', 'name' => 'Sao Tome and Principe'],
['iso_code' => 'SV', 'name' => 'El Salvador'],
['iso_code' => 'SX', 'name' => 'Sint Maarten'],
['iso_code' => 'SY', 'name' => 'Syria'],
['iso_code' => 'SZ', 'name' => 'Swaziland'],
['iso_code' => 'TC', 'name' => 'Turks and Caicos Islands'],
['iso_code' => 'TD', 'name' => 'Chad'],
['iso_code' => 'TF', 'name' => 'French Southern Territories'],
['iso_code' => 'TG', 'name' => 'Togo'],
['iso_code' => 'TH', 'name' => 'Thailand'],
['iso_code' => 'TJ', 'name' => 'Tajikistan'],
['iso_code' => 'TK', 'name' => 'Tokelau'],
['iso_code' => 'TL', 'name' => 'East Timor'],
['iso_code' => 'TM', 'name' => 'Turkmenistan'],
['iso_code' => 'TN', 'name' => 'Tunisia'],
['iso_code' => 'TO', 'name' => 'Tonga'],
['iso_code' => 'TR', 'name' => 'Turkey'],
['iso_code' => 'TT', 'name' => 'Trinidad and Tobago'],
['iso_code' => 'TV', 'name' => 'Tuvalu'],
['iso_code' => 'TW', 'name' => 'Taiwan'],
['iso_code' => 'TZ', 'name' => 'Tanzania'],
['iso_code' => 'UA', 'name' => 'Ukraine'],
['iso_code' => 'UG', 'name' => 'Uganda'],
['iso_code' => 'UM', 'name' => 'United States Minor Outlying Islands'],
['iso_code' => 'US', 'name' => 'United States'],
['iso_code' => 'UY', 'name' => 'Uruguay'],
['iso_code' => 'UZ', 'name' => 'Uzbekistan'],
['iso_code' => 'VA', 'name' => 'Vatican'],
['iso_code' => 'VC', 'name' => 'Saint Vincent and the Grenadines'],
['iso_code' => 'VE', 'name' => 'Venezuela'],
['iso_code' => 'VG', 'name' => 'British Virgin Islands'],
['iso_code' => 'VI', 'name' => 'U.S. Virgin Islands'],
['iso_code' => 'VN', 'name' => 'Vietnam'],
['iso_code' => 'VU', 'name' => 'Vanuatu'],
['iso_code' => 'WF', 'name' => 'Wallis and Futuna'],
['iso_code' => 'WS', 'name' => 'Samoa'],
['iso_code' => 'YE', 'name' => 'Yemen'],
['iso_code' => 'YT', 'name' => 'Mayotte'],
['iso_code' => 'ZA', 'name' => 'South Africa'],
['iso_code' => 'ZM', 'name' => 'Zambia'],
['iso_code' => 'ZW', 'name' => 'Zimbabwe'],
['iso_code' => 'CS', 'name' => 'Serbia and Montenegro'],
['iso_code' => 'AN', 'name' => 'Netherlands Antilles'],
];
foreach($countries as $country) {
Country::updateOrCreate(['iso_code' => $country['iso_code']], ['name' => $country['name']]);
}
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/seeders/DatabaseSeeder.php | Campaign/extensions/campaign-module/database/seeders/DatabaseSeeder.php | <?php
namespace Remp\CampaignModule\Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
public function run()
{
$this->call(CountrySeeder::class);
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/database/seeders/CampaignSeeder.php | Campaign/extensions/campaign-module/database/seeders/CampaignSeeder.php | <?php
namespace Remp\CampaignModule\Database\Seeders;
use Illuminate\Database\Seeder;
class CampaignSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
/** @var \Remp\CampaignModule\Banner $banner */
$banner = \Remp\CampaignModule\Banner::factory()->create([
'name' => 'DEMO Medium Rectangle Banner',
'template' => 'medium_rectangle',
'offset_horizontal' => 10,
'offset_vertical' => 10,
]);
$banner->mediumRectangleTemplate()->save(
\Remp\CampaignModule\MediumRectangleTemplate::factory()->make()
);
/** @var \Remp\CampaignModule\Banner $altBanner */
$altBanner = \Remp\CampaignModule\Banner::factory()->create([
'name' => 'DEMO Bar Banner',
'template' => 'bar',
'offset_horizontal' => 10,
'offset_vertical' => 10,
]);
$altBanner->barTemplate()->save(
\Remp\CampaignModule\BarTemplate::factory()->make()
);
/** @var \Remp\CampaignModule\Campaign $campaign */
$campaign = \Remp\CampaignModule\Campaign::factory()->create();
$campaign->segments()->save(
\Remp\CampaignModule\CampaignSegment::factory()->make()
);
$campaignBanner = \Remp\CampaignModule\CampaignBanner::factory()->create([
'banner_id' => $banner->id,
'campaign_id' => $campaign->id,
]);
$altCampaignBanner = \Remp\CampaignModule\CampaignBanner::factory()->create([
'banner_id' => $altBanner->id,
'campaign_id' => $campaign->id,
'weight' => 2,
]);
$controlGroup = \Remp\CampaignModule\CampaignBanner::factory()->create([
'banner_id' => null,
'campaign_id' => $campaign->id,
'weight' => 3,
'control_group' => 1,
'proportion' => 0,
]);
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/banners/edit.blade.php | Campaign/extensions/campaign-module/resources/views/banners/edit.blade.php | @extends('campaign::layouts.app')
@section('title', 'Edit banner')
@section('content')
<div class="c-header">
<h2>Banners</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Edit banner <small>{{ $banner->name }}</small></h2>
<div class="actions">
<a href="{{ route('banners.show', $banner) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-eye"></i> Show
</a>
<a href="{{ route('banners.copy', $banner) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-copy"></i> Copy
</a>
</div>
</div>
</div>
{{ html()->modelForm($banner, 'PATCH')->route('banners.update', $banner)->open() }}
@include('campaign::banners._form')
{{ html()->closeModelForm() }}
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/banners/preview.blade.php | Campaign/extensions/campaign-module/resources/views/banners/preview.blade.php | {{--<script type="text/javascript">--}}
@if(is_null($banner))
var bannerUuid = null;
@else
var bannerUuid = '{{ $banner->uuid }}';
var bannerPublicId = '{{ $banner->public_id }}';
var bannerId = 'b-' + bannerUuid;
var bannerJsonData = {!! $banner->toJson() !!};
@endif
var variantUuid = '{{ $variantUuid }}';
var variantPublicId = '{{ $variantPublicId }}';
var campaignUuid = '{{ $campaignUuid }}';
var campaignPublicId = '{{ $campaignPublicId }}';
var isControlGroup = {{ $controlGroup }};
var scripts = [];
if (typeof window.remplib.banner === 'undefined') {
scripts.push('{{ asset(mix('/js/banner.js', '/assets/lib')) }}');
}
var styles = [];
var waiting = scripts.length + styles.length;
var run = function() {
if (waiting) {
return;
}
var banner = {};
var alignments = JSON.parse('{!! json_encode($alignments) !!}');
var dimensions = JSON.parse('{!! json_encode($dimensions) !!}');
var positions = JSON.parse('{!! json_encode($positions) !!}');
var colorSchemes = JSON.parse('{!! json_encode($colorSchemes) !!}');
if (!isControlGroup) {
var banner = remplib.banner.fromModel(bannerJsonData);
}
banner.show = false;
banner.alignmentOptions = alignments;
banner.dimensionOptions = dimensions;
banner.positionOptions = positions;
banner.colorSchemes = colorSchemes;
banner.campaignUuid = campaignUuid;
banner.campaignPublicId = campaignPublicId;
banner.variantUuid = variantUuid;
banner.variantPublicId = variantPublicId;
banner.uuid = bannerUuid;
banner.publicId = bannerPublicId;
if (typeof remplib.campaign.bannerUrlParams !== "undefined") {
banner.urlParams = remplib.campaign.bannerUrlParams;
}
if (isControlGroup) {
banner.displayDelay = 0;
banner.displayType = 'none';
} else {
var d = document.createElement('div');
d.id = bannerId;
var bp = document.createElement('banner-preview');
d.appendChild(bp);
var target = null;
if (banner.displayType == 'inline') {
target = document.querySelector(banner.targetSelector);
if (target === null) {
console.warn("REMP: unable to display banner, selector not matched: " + banner.targetSelector);
return;
}
} else {
target = document.getElementsByTagName('body')[0];
}
target.appendChild(d);
remplib.banner.bindPreview('#' + bannerId, banner);
}
setTimeout(function() {
if (!banner.manualEventsTracking) {
remplib.tracker.trackEvent("banner", "show", null, null, {
"rtm_source": "remp_campaign",
"rtm_medium": banner.displayType,
"rtm_campaign": banner.campaignUuid,
"rtm_content": banner.uuid,
"rtm_variant": banner.variantUuid
});
}
banner.show = true;
if (banner.closeTimeout) {
setTimeout(function() {
banner.show = false;
}, banner.closeTimeout);
}
if (typeof resolve !== "undefined") {
resolve(true);
}
remplib.campaign.handleBannerDisplayed(banner.campaignUuid, banner.uuid, banner.variantUuid, banner.campaignPublicId, banner.publicId, banner.variantPublicId);
}, banner.displayDelay);
};
for (var i=0; i<scripts.length; i++) {
remplib.loadScript(scripts[i], function() {
waiting -= 1;
run();
});
}
for (i=0; i<styles.length; i++) {
remplib.loadStyle(styles[i], function() {
waiting -= 1;
run();
});
}
{{--</script>--}}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/banners/_form.blade.php | Campaign/extensions/campaign-module/resources/views/banners/_form.blade.php | @php
/* @var $dimensions \Illuminate\Support\Collection */
/* @var $positions \Illuminate\Support\Collection */
/* @var $alignments \Illuminate\Support\Collection */
/* @var $colorSchemes \Illuminate\Support\Collection */
/* @var $banner \Remp\CampaignModule\Banner */
@endphp
<div id="banner-form">
<banner-form></banner-form>
</div>
@push('scripts')
<script type="text/javascript">
var alignments = JSON.parse('{!! json_encode($alignments) !!}');
var dimensions = JSON.parse('{!! json_encode($dimensions) !!}');
var positions = JSON.parse('{!! json_encode($positions) !!}');
var colorSchemes = JSON.parse('{!! json_encode($colorSchemes) !!}');
var snippets = {!! json_encode($snippets) !!};
snippets = snippets.length === 0 ? {} : snippets;
var banner = remplib.banner.fromModel({!! $banner->toJson() !!});
banner.show = true;
banner.alignmentOptions = alignments;
banner.dimensionOptions = dimensions;
banner.colorSchemes = colorSchemes;
banner.positionOptions = positions;
banner.forcedPosition = 'absolute';
banner.snippets = snippets;
banner.validateUrl = {!! @json(route('banners.validateForm')) !!};
banner.clientSiteUrl = '{{ Config::get('app.client_site_url') }}';
remplib.bannerForm.bind("#banner-form", banner);
</script>
@endpush
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/banners/index.blade.php | Campaign/extensions/campaign-module/resources/views/banners/index.blade.php | @extends('campaign::layouts.app')
@section('title', 'Banners')
@section('content')
<div class="c-header">
<h2>Banners</h2>
</div>
<div class="card">
<div class="card-header">
<h2>List of banners <small></small></h2>
<div class="actions">
<a href="#modal-template-select" data-toggle="modal" class="btn palette-Cyan bg waves-effect">Add new banner</a>
</div>
</div>
{!! Widget::run('DataTable', [
'colSettings' => [
'name' => [
'priority' => 1,
'render' => 'link',
],
'public_id' => [
'header' => 'Public ID',
'priority' => 1,
],
'template' => [
'priority' => 2,
],
'display_type' => [
'priority' => 2,
],
'position' => [
'priority' => 2,
'searchable' => false,
],
'created_at' => [
'header' => 'Created at',
'render' => 'date',
'priority' => 3,
'searchable' => false,
],
'updated_at' => [
'header' => 'Updated at',
'render' => 'date',
'priority' => 4,
'searchable' => false,
],
],
'dataSource' => route('banners.json'),
'rowActions' => [
['name' => 'show', 'class' => 'zmdi-palette-Cyan zmdi-eye', 'title' => 'Show banner'],
['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit banner'],
['name' => 'copy', 'class' => 'zmdi-palette-Cyan zmdi-copy', 'title' => 'Copy banner'],
],
'rowHighlights' => [
'active' => true
],
'order' => [5, 'desc'],
]) !!}
</div>
@include('campaign::banners._template_modal')
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/banners/_template_modal.blade.php | Campaign/extensions/campaign-module/resources/views/banners/_template_modal.blade.php | <div class="modal" id="modal-template-select" data-keyboard="false" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Select template</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_MEDIUM_RECTANGLE]) }}">
<div class="card-header">
<h4 class="text-center">Medium rectangle</h4>
</div>
<div class="card-body">
<div class="preview medium-rectangle"></div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_BAR]) }}">
<div class="card-header">
<h4 class="text-center">Bar</h4>
</div>
<div class="card-body">
<div class="preview bar"></div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_COLLAPSIBLE_BAR]) }}">
<div class="card-header">
<h4 class="text-center">Collapsible bar</h4>
</div>
<div class="card-body">
<div class="preview collapsible-bar"></div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_SHORT_MESSAGE]) }}">
<div class="card-header">
<h4 class="text-center">Short message</h4>
</div>
<div class="card-body">
<div class="preview short-message"></div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_OVERLAY_RECTANGLE]) }}">
<div class="card-header">
<h4 class="text-center">Overlay rectangle banner</h4>
</div>
<div class="card-body">
<div class="preview overlay-rectangle"></div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_HTML]) }}">
<div class="card-header">
<h4 class="text-center">Custom HTML</h4>
</div>
<div class="card-body">
<div class="preview" style="margin-top: 55px;">
<i class="zmdi zmdi-language-html5 zmdi-hc-5x"></i>
</div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_HTML_OVERLAY]) }}">
<div class="card-header">
<h4 class="text-center">HTML overlay</h4>
</div>
<div class="card-body">
<div class="preview" style="margin-top: 55px;">
<i class="zmdi zmdi-language-html5 zmdi-hc-5x"></i>
</div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_OVERLAY_TWO_BUTTONS_SIGNATURE]) }}">
<div class="card-header">
<h4 class="text-center">Overlay with two buttons and signature</h4>
</div>
<div class="card-body">
<div class="preview">
<div class="preview overlay-two-buttons-signature"></div>
</div>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="card">
@if(config('newsletter_banners.endpoint') != '')
<a href="{{ route('banners.create', ['template' => \Remp\CampaignModule\Banner::TEMPLATE_NEWSLETTER_RECTANGLE]) }}">
<div class="card-header">
<h4 class="text-center">Newsletter Rectangle</h4>
</div>
<div class="card-body">
<div class="preview">
<div class="preview newsletter-rectangle"></div>
</div>
</div>
</a>
@else
<a href="javascript:" class="disabled" title="Newsletter banner is not configured. Please find instructions in 'Newsletter Banner' section of `Campaign/README.md`.">
<div class="card-header">
<h4 class="text-center">Newsletter Rectangle</h4>
</div>
<div class="card-body">
<div class="preview">
<div class="preview newsletter-rectangle"></div>
</div>
</div>
</a>
@endif
</div>
</div>
</div>
</div>
</div>
</div>
</div>
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/banners/create.blade.php | Campaign/extensions/campaign-module/resources/views/banners/create.blade.php | @extends('campaign::layouts.app')
@section('title', 'Add banner')
@section('content')
<div class="c-header">
<h2>Banners</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Add new banner</h2>
<div class="actions">
<a href="#modal-template-select" data-toggle="modal">
<button type="button" class="btn palette-Cyan bg waves-effect pull-right">Change template</button>
</a>
</div>
</div>
</div>
@include('flash::message')
{{ html()->modelForm($banner)->route('banners.store')->open() }}
@include('campaign::banners._form')
{{ html()->closeModelForm() }}
@include('campaign::banners._template_modal')
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/banners/show.blade.php | Campaign/extensions/campaign-module/resources/views/banners/show.blade.php | @push('head')
<style>
#preview-box {
position: relative;
}
i.color {
width: 20px;
height: 20px;
border-radius: 2px;
border: 1px solid black;
position: absolute;
right: 15px;
}
</style>
@endpush
@push('scripts')
<script type="text/javascript">
var alignments = JSON.parse('{!! json_encode($alignments) !!}');
var dimensions = JSON.parse('{!! json_encode($dimensions) !!}');
var positions = JSON.parse('{!! json_encode($positions) !!}');
var snippets = {!! json_encode($snippets) !!};
var banner = remplib.banner.fromModel({!! $banner->toJson() !!});
var colorSchemes = JSON.parse('{!! json_encode($colorSchemes) !!}');
banner.show = true;
banner.forcedPosition = 'absolute';
banner.alignmentOptions = alignments;
banner.dimensionOptions = dimensions;
banner.positionOptions = positions;
banner.colorSchemes = colorSchemes;
banner.snippets = snippets;
banner.adminPreview = true;
remplib.banner.bindPreview('#banner-preview', banner);
</script>
@endpush
@extends('campaign::layouts.app')
@section('title', 'Show banner')
@section('content')
<div class="c-header">
<h2>Banners</h2>
</div>
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h2>Show banner <small>{{ $banner->name }}</small></h2>
<div class="actions">
<a href="{{ route('banners.edit', $banner) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-edit"></i> Edit
</a>
<a href="{{ route('banners.copy', $banner) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-copy"></i> Copy
</a>
</div>
</div>
</div>
</div>
<div class="col-md-4">
@if(isset($banner->htmlTemplate))
<div class="card">
<div class="card-header">
<h2>HTML Template</h2>
</div>
<div class="card-body">
<ul class="list-group">
<li class="list-group-item">
<strong>Text color: </strong>{{ $banner->htmlTemplate->text_color }}
<i class="color" style="background-color: {{ $banner->htmlTemplate->text_color }}"></i>
</li>
<li class="list-group-item">
<strong>Font size: </strong>{{ $banner->htmlTemplate->font_size }}
</li>
<li class="list-group-item">
<strong>Background color: </strong>{{ $banner->htmlTemplate->background_color }}
<i class="color" style="background-color: {{ $banner->htmlTemplate->background_color }}"></i>
</li>
<li class="list-group-item">
<strong>Dimensions: </strong>{{ $dimensions[$banner->htmlTemplate->dimensions]->name }}
</li>
<li class="list-group-item">
<strong>Alignment: </strong>{{ $alignments[$banner->htmlTemplate->text_align]->name }}
</li>
</ul>
</div>
</div>
@endif
@if(isset($banner->mediumRectangleTemplate))
<div class="card">
<div class="card-header">
<h2>Medium Rectangle Template</h2>
</div>
<div class="card-body">
<ul class="list-group">
<li class="list-group-item">
<strong>Header text: </strong>{{ $banner->mediumRectangleTemplate->header_text }}
</li>
<li class="list-group-item">
<strong>Main text: </strong>{{ $banner->mediumRectangleTemplate->main_text }}
</li>
<li class="list-group-item">
<strong>Button text: </strong>{{ $banner->mediumRectangleTemplate->button_text }}
</li>
<li class="list-group-item">
<strong>Text color: </strong>{{ $banner->mediumRectangleTemplate->text_color }}
<i class="color" style="background-color: {{ $banner->mediumRectangleTemplate->text_color }}"></i>
</li>
<li class="list-group-item">
<strong>Background color: </strong>{{ $banner->mediumRectangleTemplate->background_color }}
<i class="color" style="background-color: {{ $banner->mediumRectangleTemplate->background_color }}"></i>
</li>
<li class="list-group-item">
<strong>Button text color: </strong>{{ $banner->mediumRectangleTemplate->button_text_color }}
<i class="color" style="background-color: {{ $banner->mediumRectangleTemplate->button_text_color }}"></i>
</li>
<li class="list-group-item">
<strong>Button background color: </strong>{{ $banner->mediumRectangleTemplate->button_background_color }}
<i class="color" style="background-color: {{ $banner->mediumRectangleTemplate->button_background_color }}"></i>
</li>
</ul>
</div>
</div>
@endif
<div class="card">
<div class="card-header">
<h2>Settings</h2>
</div>
<div class="card-body">
<ul class="list-group">
<li class="list-group-item">
<strong>ID: </strong> {{ $banner->id }}
</li>
<li class="list-group-item">
<strong>UUID: </strong> {{ $banner->uuid }}
</li>
<li class="list-group-item">
<strong>Public ID: </strong> {{ $banner->public_id }}
</li>
@if ($banner->position)
<li class="list-group-item">
<strong>Position: </strong>{{ $positions[$banner->position]->name }}
</li>
@endif
<li class="list-group-item">
<strong>Transition: </strong>{{ $banner->transition }}
</li>
<li class="list-group-item">
<strong>Target URL: </strong>{{ $banner->target_url }}
</li>
<li class="list-group-item">
<strong>Display delay: </strong>{{ $banner->display_delay }} ms
</li>
<li class="list-group-item">
<strong>Close timeout: </strong>
@if($banner->close_timeout)
{{ $banner->close_timeout }} ms
@else
-
@endif
</li>
<li class="list-group-item">
<strong>Closeable: </strong>{{ @yesno($banner->closeable) }}
</li>
</ul>
</div>
</div>
@if (count($banner->campaigns))
<div class="card">
<div class="card-header">
<h2>Used in campaigns</h2>
</div>
<div class="card-body">
<ul class="list-group">
@foreach($banner->campaigns as $campaign)
<li class="list-group-item">
<a href="{{ route('campaigns.show', $campaign) }}">{{ $campaign->name }}</a>
</li>
@endforeach
</ul>
</div>
</div>
@endif
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header">
<h2>Preview</h2>
</div>
<div class="card-body card-padding">
<div class="row cp-container" style="min-height: 300px">
<div class="col-md-12">
<div id="banner-preview"></div>
</div>
</div>
</div>
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/auth/error.blade.php | Campaign/extensions/campaign-module/resources/views/auth/error.blade.php | @extends('campaign::layouts.auth')
@section('title', 'Error')
@section('content')
<div class="lb-header palette-Teal bg">
<i class="zmdi zmdi-account-circle"></i>
<p>There was an error signing you in.</p>
<p>If you believe this shouldn't happen, please contact your administrator.</p>
</div>
<div class="lb-body">
{{ $message }}
</div>
@endsection | php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/snippets/edit.blade.php | Campaign/extensions/campaign-module/resources/views/snippets/edit.blade.php | @extends('campaign::layouts.app')
@section('title', 'Edit snippet')
@section('content')
<div class="c-header">
<h2>Snippets</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Edit snippet</h2>
</div>
<div class="card-body card-padding">
@include('flash::message')
{{ html()->modelForm($snippet, 'PATCH')->route('snippets.update', ['snippet' => $snippet])->open() }}
@include('campaign::snippets._form')
{{ html()->closeModelForm() }}
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/snippets/_form.blade.php | Campaign/extensions/campaign-module/resources/views/snippets/_form.blade.php | <div id="snippet-form">
<snippet-form></snippet-form>
</div>
@push('scripts')
<script type="text/javascript">
var snippet = {
"name": '{!! $snippet->name !!}' || null,
"value": {!! json_encode($snippet->value) !!} || null,
"validateUrl": {!! @json(route('snippets.validateForm', ['snippet' => $snippet])) !!},
}
remplib.snippetForm.bind("#snippet-form", snippet);
</script>
@endpush
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/snippets/index.blade.php | Campaign/extensions/campaign-module/resources/views/snippets/index.blade.php | @extends('campaign::layouts.app')
@section('title', 'Snippets')
@section('content')
<div class="c-header">
<h2>Snippets</h2>
</div>
<div class="card">
<div class="card-header">
<h2>List of snippets
<small v-pre>
These snippets are supported in your banner template contents, inline JS/CSS snippets and URLs of external JS/CSS files.<br>
You can use created snippets by adding <code>{{ snippet_name }}</code> to fields which are marked as supported.
</small>
</h2>
<div class="actions">
<a href="{{ route('snippets.create') }}" data-toggle="modal" class="btn palette-Cyan bg waves-effect">Add new snippet</a>
</div>
</div>
{!! Widget::run('DataTable', [
'colSettings' => [
'name' => [
'priority' => 1,
'render' => 'link',
],
'created_at' => [
'header' => 'Created at',
'render' => 'date',
'priority' => 3,
],
'updated_at' => [
'header' => 'Updated at',
'render' => 'date',
'priority' => 4,
],
],
'dataSource' => route('snippets.json'),
'rowActions' => [
['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit snippet'],
],
'order' => [2, 'desc']
]) !!}
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/snippets/create.blade.php | Campaign/extensions/campaign-module/resources/views/snippets/create.blade.php | @extends('campaign::layouts.app')
@section('title', 'Add snippet')
@section('content')
<div class="c-header">
<h2>Snippets</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Create snippet</h2>
</div>
<div class="card-body card-padding">
@include('flash::message')
{{ html()->modelForm($snippet)->route('snippets.store')->open() }}
@include('campaign::snippets._form')
{{ html()->closeModelForm() }}
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/comparison/index.blade.php | Campaign/extensions/campaign-module/resources/views/comparison/index.blade.php | @extends('campaign::layouts.app')
@section('title', 'Campaigns comparison')
@section('content')
<div class="c-header">
<h2>CAMPAIGNS COMPARISON</h2>
</div>
<div class="card" id="comparison-app">
<campaign-comparison></campaign-comparison>
</div>
<script type="text/javascript">
new Vue({
el: "#comparison-app",
components: {
CampaignComparison
}
});
</script>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/campaigns/edit.blade.php | Campaign/extensions/campaign-module/resources/views/campaigns/edit.blade.php | @extends('campaign::layouts.app')
@section('title', 'Edit campaign')
@section('content')
<div class="c-header">
<h2>Campaigns: {{ $campaign->name }}</h2>
</div>
<div class="container">
@include('flash::message')
{{ html()->modelForm($campaign, 'PATCH')->route('campaigns.update', ['campaign' => $campaign, 'collection' => $collection])->attribute('id', 'campaign-form-root')->open() }}
@include('campaign::campaigns._form', ['action' => 'edit'])
{{ html()->closeModelForm() }}
</div>
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-8">
<div class="card z-depth-1-top">
<div class="card-header">
<h2>Scheduled runs<small></small></h2>
</div>
<div class="card-body">
{!! Widget::run('DataTable', [
'colSettings' => [
'status' => [
'header' => 'Status',
'priority' => 1,
'render' => 'badge',
],
'start_time' => [
'header' => 'Scheduled start date',
'render' => 'date',
'priority' => 2,
],
'end_time' => [
'header' => 'Scheduled end date',
'render' => 'date',
'priority' => 2,
],
],
'dataSource' => route('campaign.schedule.json', ['campaign' => $campaign, 'active' => true]),
'order' => [1, 'desc'],
'displaySearchAndPaging' => false,
]) !!}
</div>
</div>
</div>
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/campaigns/stats.blade.php | Campaign/extensions/campaign-module/resources/views/campaigns/stats.blade.php | @extends('campaign::layouts.app')
@section('title', $campaign->name . ' stats')
@section('content')
@if($beamJournalConfigured)
<div class="well">
<div class="row">
<div class="col-md-6">
<h4>Filter by date and time</h4>
<div id="smart-range-selector">
{{ html()->hidden('from', $from) }}
{{ html()->hidden('to', $to) }}
<smart-range-selector from="{{$from}}" to="{{$to}}" :callback="callback">
</smart-range-selector>
</div>
</div>
</div>
</div>
<div id="stats-app">
<campaign-stats-root
:url="url"
:name="name"
:edit-link="editLink"
:variants="variants"
:variant-banner-links="variantBannerLinks"
:variant-banner-texts="variantBannerTexts"
:from="from"
:to="to"
:timezone="timezone"
></campaign-stats-root>
</div>
<script type="text/javascript">
new Vue({
el: "#smart-range-selector",
components: {
SmartRangeSelector
},
methods: {
callback: function (from, to) {
$('[name="from"]').val(from).trigger("change");
$('[name="to"]').val(to).trigger("change");
}
}
});
new Vue({
el: "#stats-app",
components: {
CampaignStatsRoot
},
mounted: function() {
var vm = this;
$('[name="from"]').on('change', function () {
vm.from = $('[name="from"]').val();
});
$('[name="to"]').on('change', function () {
vm.to = $('[name="to"]').val();
});
},
data() {
return {
name: "<a href=\"{!! route('campaigns.show', ['campaign' => $campaign]) !!}\">{{ $campaign->name }}</a>",
url: "{!! route('campaigns.stats.data', $campaign->id) !!}",
editLink: "{!! route('campaigns.edit', $campaign) !!}",
variants: {!! @json($variants) !!},
variantBannerLinks: {!! @json($variantBannerLinks) !!},
variantBannerTexts: {!! @json($variantBannerTexts) !!},
from: '{!! $from !!}',
to: '{!! $to !!}',
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
}
}
})
</script>
@else
<div class="card">
<div class="row">
<div class="col-md-12 m-l-30 m-r-30 m-t-25">
<p>No stats are available for the campaign, since Beam Journal integration is not configured.</p>
<p>Information on how to configure Beam Journal integration can be found in <a href="https://github.com/remp2020/remp/tree/master/Campaign#admin-integration-with-beam-journal">the documentation</a>.</p>
</div>
</div>
</div>
@endif
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/campaigns/_form.blade.php | Campaign/extensions/campaign-module/resources/views/campaigns/_form.blade.php | @php
/* @var $campaign \Remp\CampaignModule\Campaign */
/* @var $banners \Illuminate\Support\Collection */
/* @var $segments \Illuminate\Support\Collection */
$banners = $banners->map(function(\Remp\CampaignModule\Banner $banner) {
return ['id' => $banner->id, 'name' => $banner->name];
});
$segments = $segments->mapToGroups(function ($item) {
return [$item->group->name => [$item->code => $item]];
})->mapWithKeys(function($item, $key) {
return [$key => $item->collapse()];
});
$segmentMap = $segments->flatten()->mapWithKeys(function ($item) {
return [$item->code => $item->name];
});
@endphp
<div id="campaign-form">
<campaign-form></campaign-form>
</div>
@push('scripts')
<script type="text/javascript">
var campaign = {{ Illuminate\Support\Js::from([
"name" => $campaign->name,
"action" => $action,
"segments" => isset($selectedSegments) ? $selectedSegments : $campaign->segments,
"bannerId" => $bannerId,
"variants" => $variants,
"signedIn" => $campaign->signed_in,
"usingAdblock" => $campaign->using_adblock,
"oncePerSession" => $campaign->once_per_session,
"active" => $campaign->active,
"pageviewRules" => $campaign->pageview_rules ?? [],
"pageviewAttributes" => $campaign->pageview_attributes ?? [],
"countries" => $selectedCountries,
"languages" => $selectedLanguages,
"countriesBlacklist" => $countriesBlacklist ?? 0,
"allDevices" => $campaign->getAllDevices(),
"availableOperatingSystems" => $campaign->getAvailableOperatingSystems(),
"selectedDevices" => $campaign->devices ?? [],
"selectedOperatingSystems" => $campaign->operating_systems ?? [],
"validateUrl" => route('campaigns.validateForm'),
"urlFilterTypes" => $campaign->getAllUrlFilterTypes(),
"sourceFilterTypes" => $campaign->getAllSourceFilterTypes(),
"urlFilter" => $campaign->url_filter,
"urlPatterns" => $campaign->url_patterns,
"sourceFilter" => $campaign->source_filter,
"sourcePatterns" => $campaign->source_patterns,
"statsLink" => $campaign->id ? route('campaigns.stats', $campaign) : null,
"editLink" => $campaign->id ? route('campaigns.edit', $campaign) : null,
"showLink" => $campaign->id ? route('campaigns.show', $campaign) : null,
"copyLink" => $campaign->id ? route('campaigns.copy', $campaign) : null,
"prioritizeBannersSamePosition" => Config::get('banners.prioritize_banners_on_same_position', false),
"banners" => $banners,
"availableSegments" => $segments,
"addedSegment" => null,
"removedSegments" => [],
"segmentMap" => $segmentMap,
"eventTypes" => [
[
"category" => "banner",
"action" => "show",
"value" => "banner|show",
"label" => "banner / show"
],
[
"category" => "banner",
"action" => "click",
"value" => "banner|click",
"label" => "banner / click"
]
],
"availableCountries" => $availableCountries,
"availableLanguages" => $availableLanguages,
"countriesBlacklistOptions" => [
[
"value" => 0,
"label" => "Whitelist"
],
[
"value" => 1,
"label" => "Blacklist"
]
],
"activationMode" => "activate-now",
]) }};
remplib.campaignForm.bind("#campaign-form", campaign);
</script>
@endpush
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/campaigns/index.blade.php | Campaign/extensions/campaign-module/resources/views/campaigns/index.blade.php | @extends('campaign::layouts.app')
@section('title', 'Campaigns')
@section('content')
<div class="c-header">
<h2>@if($collection) CAMPAIGNS FROM COLLECTION '{{ $collection->name }}' @else CAMPAIGNS @endif</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Scheduled campaigns<small></small></h2>
<div class="actions">
<a href="{{ route('schedule.index', ['collection' => $collection]) }}" class="btn palette-Cyan bg waves-effect">View all schedules</a>
</div>
</div>
<div class="card-body">
{!! Widget::run('DataTable', [
'colSettings' => [
'campaign' => [
'header' => 'Campaign',
'priority' => 1,
'render' => 'link',
],
'status' => [
'header' => 'Status',
'priority' => 1,
'render' => 'badge',
],
'start_time' => [
'header' => 'Scheduled start date',
'render' => 'date',
'priority' => 2,
],
'end_time' => [
'header' => 'Scheduled end date',
'render' => 'date',
'priority' => 2,
],
'campaign_public_id' => [
'priority' => 3,
'visible' => false,
],
],
'dataSource' => route('schedule.json', ['collection' => $collection, 'active' => true]),
'rowActions' => [
['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit schedule'],
['name' => 'start', 'class' => 'zmdi-palette-Cyan zmdi-play', 'title' => 'Start schedule'],
['name' => 'pause', 'class' => 'zmdi-palette-Cyan zmdi-pause', 'title' => 'Pause schedule'],
['name' => 'stop', 'class' => 'zmdi-palette-Cyan zmdi-stop', 'title' => 'Stop schedule'],
['name' => 'destroy', 'class' => 'zmdi-palette-Cyan zmdi-delete', 'title' => 'Delete schedule'],
],
'refreshTriggers' => [
[
// refresh when campaign's active toggle is toggled
'event' => 'campaign_active_toggled',
'selector' => 'document'
],
],
'order' => [2, 'desc'],
]) !!}
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h2>Campaign list <small></small></h2>
<div class="actions">
<a href="{{ route('comparison.index') }}" class="btn palette-Cyan bg waves-effect">Compare campaigns</a>
<a href="{{ route('campaigns.create', ['collection' => $collection]) }}" class="btn palette-Cyan bg waves-effect">Add new campaign</a>
</div>
</div>
<div class="card-body">
{!! Widget::run('DataTable', [
'colSettings' => [
'name' => [
'priority' => 1,
'render' => 'link',
],
'public_id' => [
'header' => 'Public ID',
'priority' => 1,
],
'collections' => [
'header' => 'Collections',
'priority' => 2,
],
'variants' => [
'header' => 'Variants',
'orderable' => false,
'filter' => $variants,
'priority' => 3,
'render' => 'array',
],
'segments' => [
'header' => 'Segments',
'orderable' => false,
'filter' => $segments,
'priority' => 10,
'render' => 'array',
],
'countries' => [
'header' => 'Countries',
'orderable' => false,
'priority' => 10,
],
'active' => [
'header' => 'Is active',
'orderable' => true,
'priority' => 5,
'render' => 'raw',
],
'signed_in' => [
'header' => 'Signed-in state',
'priority' => 10,
],
'devices' => [
'header' => 'Devices',
'priority' => 10,
],
'created_at' => [
'header' => 'Created at',
'render' => 'date',
'priority' => 9,
],
'updated_at' => [
'header' => 'Updated at',
'render' => 'date',
'priority' => 1,
]
],
'rowHighlights' => [
'is_running' => true
],
'dataSource' => route('campaigns.json', ['collection' => $collection]),
'rowActions' => [
['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit campaign'],
['name' => 'copy', 'class' => 'zmdi-palette-Cyan zmdi-copy', 'title' => 'Copy campaign'],
array_merge(
['name' => 'stats', 'class' => 'zmdi-palette-Cyan zmdi-chart', 'title' => 'Campaign stats'],
$beamJournalConfigured ? [] : ['onclick' => 'showHowToEnableStats(event,this)']
),
['name' => 'compare', 'onclick' => 'addCampaignToComparison(event, this)', 'class' => 'zmdi-palette-Cyan zmdi-swap ', 'title' => 'Add campaign to comparison']
],
'order' => [9, 'desc'],
]) !!}
</div>
</div>
</div>
</div>
<script>
function showHowToEnableStats(e, anchor) {
e.preventDefault();
if (!$(anchor).hasClass('popoverAdded')) {
$(anchor).addClass('popoverAdded').popover({
"toggle": "popover",
"placement": "left",
"trigger": "focus",
"content": '<p class="m-t-5">No stats are available for the campaign, since Beam Journal integration is not configured. To enable stats, please consult <a href="https://github.com/remp2020/remp/tree/master/Campaign#admin-integration-with-beam-journal">the documentation</a>.</p>',
"html": true,
});
}
$(anchor).popover('toggle');
}
function addCampaignToComparison(e, anchor) {
e.preventDefault();
$.ajax({
url: anchor.href,
type: 'PUT'
}).done(function(data) {
$.notify({
message: 'Campaign was added to comparison </br>' +
'<a class="notifyLink" href="{!! route('comparison.index') !!}">Go to comparison page.</a>'
}, {
allow_dismiss: false,
type: 'info'
});
}).fail(function() {
var errorMsg = 'Unable to add campaign to comparison';
console.warn(errorMsg);
$.notify({
message: errorMsg
}, {
allow_dismiss: false,
type: 'danger'
});
});
}
</script>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/campaigns/create.blade.php | Campaign/extensions/campaign-module/resources/views/campaigns/create.blade.php | @extends('campaign::layouts.app')
@section('title', 'Add campaign')
@section('content')
<div class="c-header">
<h2>Campaigns</h2>
</div>
<div class="container">
@include('flash::message')
{{ html()->modelForm($campaign)->route('campaigns.store', ['collection' => $collection])->attribute('id', 'campaign-form-root')->open() }}
@include('campaign::campaigns._form', ['action' => 'create'])
{{ html()->closeModelForm() }}
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/campaigns/show.blade.php | Campaign/extensions/campaign-module/resources/views/campaigns/show.blade.php | @extends('campaign::layouts.app')
@section('title', 'Show campaign')
@section('content')
<div class="c-header">
<h2>Campaigns: {{ $campaign->name }}</h2>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h2>Settings</h2>
<div class="actions">
<a href="{{ route('campaigns.edit', ['campaign' => $campaign]) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-edit"></i> Edit
</a>
<a href="{{ route('campaigns.stats', ['campaign' => $campaign]) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-chart"></i> Stats
</a>
<a href="{{ route('campaigns.copy', ['sourceCampaign' => $campaign]) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-copy"></i> Copy
</a>
</div>
</div>
<div class="card-body">
<ul class="list-group">
<li class="list-group-item">
<strong>ID: </strong> {{ $campaign->id }}
</li>
<li class="list-group-item">
<strong>UUID: </strong> {{ $campaign->uuid }}
</li>
<li class="list-group-item">
<strong>Public ID: </strong> {{ $campaign->public_id }}
</li>
<li class="list-group-item">
<strong>Variants:</strong>
<ul>
@foreach($campaign->campaignBanners as $variant)
@if($variant->control_group)
<li>
Control Group ({{ $variant->proportion }}%)
</li>
@else
<li>
<a href="{{ route('banners.edit', ['banner' => $variant['banner_id']]) }}">
{{ $variant->banner['name'] }} ({{ $variant->proportion }}%)
</a>
</li>
@endif
@endforeach
</ul>
</li>
<li class="list-group-item">
<strong>User signed-in state:</strong>
@if($campaign->signed_in === null)
Everyone
@elseif($campaign->signed_in === true)
Only signed in
@elseif ($campaign->signed_in === false)
Only anonymous
@endif
</li>
<li class="list-group-item">
<strong>Segments: </strong>
<ul>
@foreach($campaign->segments as $segment)
<li>{{ $segment->code }}</li>
@endforeach
</ul>
</li>
<li class="list-group-item">
<strong>Where to display: </strong>
<ul>
<li>
URL:
@if ($campaign->url_filter === 'everywhere') Everywhere
@elseif($campaign->url_filter === 'only_at') Only at
@elseif($campaign->url_filter === 'except_at') Except at
@endif
@if($campaign->url_filter !== 'everywhere')
<ul>
@foreach($campaign->url_patterns as $urlPattern)
<li><code>{{ $urlPattern }}</code></li>
@endforeach
</ul>
@endif
</li>
<li>
Referer:
@if ($campaign->source_filter === 'everywhere') Everywhere
@elseif($campaign->source_filter === 'only_at') Only at
@elseif($campaign->source_filter === 'except_at') Except at
@endif
@if($campaign->source_filter !== 'everywhere')
<ul>
@foreach($campaign->source_patterns as $sourcePattern)
<li><code>{{ $sourcePattern }}</code></li>
@endforeach
</ul>
@endif
</li>
</ul>
</li>
@if($campaign->pageview_rules !== null)
<li class="list-group-item">
<strong>Display banner:</strong>
<ul>
<li>
Display banner: @if($campaign->pageview_rules['display_banner'] === 'every')Every {{ $campaign->pageview_rules['display_banner_every'] }} page views @else Always @endif
</li>
@if($campaign->pageview_rules['display_times'])
<li>
Display to user {{ $campaign->pageview_rules['display_n_times'] }} times, then stop.
</li>
@endif
</ul>
</li>
@endif
<li class="list-group-item">
<strong>Display only once per session:</strong>
{{ @yesno($campaign->once_per_session) }}
</li>
@if($campaign->countriesWhitelist->count())
<li class="list-group-item">
<strong>Countries whitelist:</strong>
<ul>
@foreach($campaign->countriesWhitelist as $country)
<li>{{ $country->name }}</li>
@endforeach
</ul>
</li>
@elseif($campaign->countriesBlacklist->count())
<li class="list-group-item">
<strong>Countries blacklist:</strong>
<ul>
@foreach($campaign->countriesBlacklist as $country)
<li>{{ $country->name }}</li>
@endforeach
</ul>
</li>
@endif
@foreach(['desktop', 'mobile'] as $device)
<li class="list-group-item">
<strong>Show on {{ ucfirst($device) }}:</strong>
{{ @yesno(in_array($device, $campaign->devices)) }}
</li>
@endforeach
<li class="list-group-item">
<strong>Active: </strong>{{ @yesno($campaign->active) }}
</li>
</ul>
</div>
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/campaigns/partials/activeToggle.blade.php | Campaign/extensions/campaign-module/resources/views/campaigns/partials/activeToggle.blade.php | <div id="campaigns-list-item-{{ $id }}">
<toggle
name="campaigns-list-item-active-toggle-{{ $id }}"
id="campaigns-list-item-active-toggle-{{ $id }}"
:is-checked="{!! @json($active) !!}"
title="{{ $title }}"
method="post"
toggle-url="{!! route('api.campaigns.toggle_active', ['campaign' => $id]) !!}"
auth-token="{{ config('services.remp.sso.api_token') }}"
:callback="callback"
></toggle>
</div>
<script type="text/javascript">
new Vue({
el: "#campaigns-list-item-{{ $id }}",
components: {
Toggle
},
methods: {
callback: function (response, status) {
if (response.status !== 200) {
$.notify({
message: 'Cannot toggle campaign active status'
}, {
allow_dismiss: false,
type: 'danger'
});
}
// dispatch event used by schedules to reload datatable
document.dispatchEvent(new Event('campaign_active_toggled'));
}
}
});
</script>
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/schedule/edit.blade.php | Campaign/extensions/campaign-module/resources/views/schedule/edit.blade.php | @extends('campaign::layouts.app')
@section('title', 'Schedule new campaign run')
@section('content')
<div class="c-header">
<h2>SCHEDULES</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Edit scheduled run <small>{{ $schedule->campaign->name }}</small></h2>
<div class="actions">
<a href="{{ route('campaigns.show', ['campaign' => $schedule->campaign]) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-eye"></i> Show campaign
</a>
<a href="{{ route('campaigns.edit', ['campaign' => $schedule->campaign]) }}" class="btn palette-Cyan bg waves-effect">
<i class="zmdi zmdi-palette-Cyan zmdi-edit"></i> Edit campaign
</a>
</div>
</div>
<div class="card-body card-padding">
@include('flash::message')
{{ html()->modelForm($schedule, 'PATCH')->route('schedule.update', ['schedule' => $schedule, 'collection' => $collection])->open() }}
@include('campaign::schedule._form')
{{ html()->closeModelForm() }}
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/schedule/_form.blade.php | Campaign/extensions/campaign-module/resources/views/schedule/_form.blade.php | <div class="row">
<div class="col-md-6 form-group">
{{ html()->hidden('campaign_id') }}
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="zmdi zmdi-timer"></i></span>
<div class="dtp-container fg-line">
{{ html()->label('Start time', 'start_time_frontend')->attribute('fg-label') }}
{{ html()->text('start_time_frontend', $schedule->start_time)->attributes([
'class' => 'form-control date-time-picker',
'disabled' => $schedule->id && !$schedule->isEditable() ? 'disabled' : null,
]) }}
</div>
{{ html()->hidden('start_time') }}
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="zmdi zmdi-timer-off"></i></span>
<div class="dtp-container fg-line">
{{ html()->label('End time', 'end_time_frontend')->attribute('fg-label') }}
{{ html()->text('end_time_frontend', $schedule->end_time)->attributes([
'class' => 'form-control date-time-picker',
]) }}
</div>
{{ html()->hidden('end_time') }}
</div>
</div>
<div class="input-group m-t-20">
<div class="fg-line">
<button class="btn btn-info waves-effect" type="submit"><i class="zmdi zmdi-mail-send"></i> Save and close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
var $startTimeFE = $("#start_time_frontend");
var $startTime = $('input[name="start_time"]');
var $endTimeFE = $("#end_time_frontend");
var $endTime = $('input[name="end_time"]');
$startTimeFE.on('dp.change', function() {
var st = $(this).data("DateTimePicker").date();
var et = $endTimeFE.data("DateTimePicker").date();
if (st && et && st.unix() > et.unix()) {
$endTimeFE.data("DateTimePicker").date(st);
}
});
$endTimeFE.on("dp.change", function (e) {
var st = $startTimeFE.data("DateTimePicker").date();
var et = $(this).data("DateTimePicker").date();
if (st && et && et.unix() < st.unix()) {
$startTimeFE.data("DateTimePicker").date(et);
}
}).datetimepicker({useCurrent: false});
$('form').on('submit', function() {
var st = $startTimeFE.data("DateTimePicker").date();
$startTime.val(st ? st.toISOString() : null);
var et = $endTimeFE.data("DateTimePicker").date();
$endTime.val(et ? et.toISOString() : null);
return true;
})
})
</script>
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/schedule/index.blade.php | Campaign/extensions/campaign-module/resources/views/schedule/index.blade.php | @extends('campaign::layouts.app')
@section('title', 'Scheduler')
@section('content')
<div class="c-header">
<h2>Scheduler</h2>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h2>Schedule <small></small></h2>
<div class="actions">
<a href="{{ route('campaigns.index', ['collection' => $collection]) }}" class="btn palette-Cyan bg waves-effect"><i class="zmdi zmdi-long-arrow-return"></i> Back to campaigns</a>
</div>
</div>
<div class="card-body">
{!! Widget::run('DataTable', [
'colSettings' => [
'campaign' => [
'header' => 'Campaign',
'priority' => 1,
'render' => 'link',
],
'variants' => [
'header' => 'Variants',
'orderable' => false,
'filter' => $variants,
'priority' => 3,
'render' => 'array',
],
'status' => [
'header' => 'Status',
'priority' => 1,
'render' => 'badge',
],
'start_time' => [
'header' => 'Scheduled start date',
'render' => 'date',
'priority' => 2,
],
'end_time' => [
'header' => 'Scheduled end date',
'render' => 'date',
'priority' => 1,
],
'updated_at' => [
'header' => 'Updated at',
'render' => 'date',
'priority' => 3,
],
],
'dataSource' => route('schedule.json'),
'rowActions' => [
['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit'],
['name' => 'start', 'class' => 'zmdi-palette-Cyan zmdi-play'],
['name' => 'pause', 'class' => 'zmdi-palette-Cyan zmdi-pause'],
['name' => 'stop', 'class' => 'zmdi-palette-Cyan zmdi-stop'],
['name' => 'destroy', 'class' => 'zmdi-palette-Cyan zmdi-delete'],
],
'order' => [4, 'asc'],
]) !!}
</div>
</div>
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/layouts/_head.blade.php | Campaign/extensions/campaign-module/resources/views/layouts/_head.blade.php | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> @yield('title') </title>
<link rel="apple-touch-icon" sizes="57x57" href="/vendor/campaign/assets/img/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/vendor/campaign/assets/img/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/vendor/campaign/assets/img/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/vendor/campaign/assets/img/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/vendor/campaign/assets/img/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/vendor/campaign/assets/img/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/vendor/campaign/assets/img/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/vendor/campaign/assets/img/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/vendor/campaign/assets/img/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/vendor/campaign/assets/img/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/vendor/campaign/assets/img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/vendor/campaign/assets/img/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/vendor/campaign/assets/img/favicon/favicon-16x16.png">
<link rel="manifest" href="/vendor/campaign/assets/img/favicon/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/vendor/campaign/assets/img/favicon/ms-icon-144x144.png">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link href="{{ asset(mix('/css/vendor.css', '/vendor/campaign')) }}" rel="stylesheet">
<link href="{{ asset(mix('/css/app.css', '/vendor/campaign')) }}" rel="stylesheet">
<script src="{{ asset(mix('/js/manifest.js', '/vendor/campaign')) }}"></script>
<script src="{{ asset(mix('/js/vendor.js', '/vendor/campaign')) }}"></script>
<script src="{{ asset(mix('/js/app.js', '/vendor/campaign')) }}"></script>
<script type="text/javascript">
moment.locale('{{ Config::get('app.locale') }}');
</script>
{{-- tightenco/ziggy package to pass laravel routes to JS --}}
@routes
@stack('head')
</head> | php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/layouts/auth.blade.php | Campaign/extensions/campaign-module/resources/views/layouts/auth.blade.php | <html>
@include('campaign::layouts._head')
<body>
<div class="login">
<!-- Login -->
<div class="l-block toggled" id="l-login">
@yield('content')
</div>
</div>
</body>
</html> | php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/layouts/app.blade.php | Campaign/extensions/campaign-module/resources/views/layouts/app.blade.php | <!DOCTYPE html>
@include('campaign::layouts._head')
<body data-ma-header="cyan-600">
<div class="remp-menu">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="/">
<div class="svg-logo"></div>
</a>
</div>
<ul class="nav navbar-nav navbar-remp display-on-computer">
@foreach(config('services.remp.linked') as $key => $service)
@isset($service['url'])
<li @class(['active' => $service['url'] === '/'])>
<a href="{{ $service['url'] }}"><i class="zmdi zmdi-{{ $service['icon'] }} zmdi-hc-fw"></i> {{ $key }}</a>
</li>
@endisset
@endforeach
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown hm-profile">
<a data-toggle="dropdown" href="">
<img src="https://www.gravatar.com/avatar/{{ md5(Auth::user()->email) }}" alt="">
</a>
<ul class="dropdown-menu pull-right dm-icon">
<li>
<a href="{{ route('auth.logout') }}"><i class="zmdi zmdi-time-restore"></i> Logout</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</div>
<header id="header" class="media">
<div class="pull-left h-logo">
<a href="/" class="hidden-xs"></a>
<div class="menu-collapse" data-ma-action="sidebar-open" data-ma-target="main-menu">
<div class="mc-wrap">
<div class="mcw-line top palette-White bg"></div>
<div class="mcw-line center palette-White bg"></div>
<div class="mcw-line bottom palette-White bg"></div>
</div>
</div>
</div>
<ul class="pull-right h-menu">
<li class="hm-search-trigger">
<a href="" data-ma-action="search-open">
<i class="hm-icon zmdi zmdi-search"></i>
</a>
</li>
</ul>
<div class="media-body h-search site-search">
<form class="p-relative">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="preloader pl-lg pls-teal">
<svg class="pl-circular" viewBox="25 25 50 50">
<circle class="plc-path" cx="50" cy="50" r="20"></circle>
</svg>
</div>
<input class="js-typeahead hs-input typeahead"
name="q"
autocomplete="off"
placeholder="Search for banners and campaigns">
<i class="zmdi zmdi-search hs-reset" data-ma-action="search-clear"></i>
</div>
</div>
</form>
</div>
<div class="clearfix"></div>
</header>
<section id="main">
<aside id="s-main-menu" class="sidebar">
<ul class="main-menu">
<li {!! route_active(['banners']) !!}>
<a href="{{ route('banners.index') }}" ><i class="zmdi zmdi-collection-folder-image"></i> Banners</a>
</li>
<li {!! route_active(['campaigns']) !!}>
<a href="{{ route('campaigns.index') }}" ><i class="zmdi zmdi-ticket-star"></i> Campaigns</a>
</li>
<li {!! route_active(['collections']) !!}>
<a href="{{ route('collections.index') }}" ><i class="zmdi zmdi-collection-text"></i> Collections</a>
</li>
<li {!! route_active(['snippets']) !!}>
<a href="{{ route('snippets.index') }}" ><i class="zmdi zmdi-code"></i> Snippets</a>
</li>
</ul>
</aside>
<section id="content">
<div class="container">
@yield('content')
@if (count($errors) > 0)
<div class="alert alert-danger m-t-30">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
</div>
</section>
<footer id="footer">
<p>Thank you for using <a href="https://remp2020.com/" title="Readers’ Engagement and Monetization Platform | Open-source tools for publishers">REMP</a>, open-source software by Denník N.</p>
</footer>
</section>
<!-- Older IE warning message -->
<!--[if lt IE 9]>
<div class="ie-warning">
<h1 class="c-white">Warning!!</h1>
<p>You are using an outdated version of Internet Explorer, please upgrade <br/>to any of the following web browsers to access this website.</p>
<div class="iew-container">
<ul class="iew-download">
<li>
<a href="http://www.google.com/chrome/">
<img src="img/browsers/chrome.png" alt="">
<div>Chrome</div>
</a>
</li>
<li>
<a href="https://www.mozilla.org/en-US/firefox/new/">
<img src="img/browsers/firefox.png" alt="">
<div>Firefox</div>
</a>
</li>
<li>
<a href="http://www.opera.com">
<img src="img/browsers/opera.png" alt="">
<div>Opera</div>
</a>
</li>
<li>
<a href="https://www.apple.com/safari/">
<img src="img/browsers/safari.png" alt="">
<div>Safari</div>
</a>
</li>
<li>
<a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie">
<img src="img/browsers/ie.png" alt="">
<div>IE (New)</div>
</a>
</li>
</ul>
</div>
<p>Sorry for the inconvenience!</p>
</div>
<![endif]-->
<script>
$(document).ready(function() {
salvattore.init();
})
</script>
<script type="application/javascript">
$(document).ready(function() {
var delay = 250;
@foreach ($errors->all() as $error)
(function(delay) {
window.setTimeout(function() {
$.notify({
message: '{{ $error }}'
}, {
allow_dismiss: false,
type: 'danger'
});
}, delay);
})(delay);
@endforeach
@if (session('warning'))
$.notify({
message: '{{ session('warning') }}'
}, {
allow_dismiss: false,
type: 'warning',
placement: {
from: "bottom",
align: "left"
}
});
@endif
@if (session('success'))
$.notify({
message: '{{ session('success') }}'
}, {
allow_dismiss: false,
type: 'info',
placement: {
from: "bottom",
align: "left"
}
});
@endif
});
</script>
@stack('scripts')
</body>
</html>
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/collections/edit.blade.php | Campaign/extensions/campaign-module/resources/views/collections/edit.blade.php | @extends('campaign::layouts.app')
@section('title', 'Edit collection')
@section('content')
<div class="c-header">
<h2>Collections</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Edit collection</h2>
</div>
<div class="card-body card-padding">
@include('flash::message')
{{ html()->modelForm($collection, 'PATCH')->route('collections.update', $collection)->attribute('id', 'collection-form-root')->open() }}
@include('campaign::collections._form', ['action' => 'edit'])
{{ html()->closeModelForm() }}
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/collections/_form.blade.php | Campaign/extensions/campaign-module/resources/views/collections/_form.blade.php | <div id="collection-form">
<collection-form></collection-form>
</div>
@push('scripts')
<script type="text/javascript">
var collection = {
"name": '{!! $collection->name !!}' || null,
"action": '{{ $action }}',
"selectedCampaigns": {!! @json($selectedCampaigns) !!},
"allCampaigns": {!! @json($campaigns) !!},
};
remplib.collectionForm.bind("#collection-form", collection);
</script>
@endpush
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/collections/index.blade.php | Campaign/extensions/campaign-module/resources/views/collections/index.blade.php | @extends('campaign::layouts.app')
@section('title', 'Collections')
@section('content')
<div class="c-header">
<h2>Collections</h2>
</div>
<div class="card">
<div class="card-header">
<h2>List of Collections
</h2>
<div class="actions">
<a href="{{ route('collections.create') }}" data-toggle="modal" class="btn palette-Cyan bg waves-effect">Add new collection</a>
</div>
</div>
{!! Widget::run('DataTable', [
'colSettings' => [
'name' => [
'priority' => 1,
'render' => 'link',
],
'campaigns' => [
'priority' => 2,
'render' => 'array',
]
],
'dataSource' => route('collections.json'),
'rowActions' => [
['name' => 'show', 'class' => 'zmdi-palette-Cyan zmdi-eye', 'title' => 'List campaigns'],
['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit collection'],
['name' => 'destroy', 'class' => 'zmdi-palette-Cyan zmdi-delete confirm', 'title' => 'Remove collection', 'onclick' => 'return confirm(\'Are you sure you want to delete this collection?\')'],
],
'order' => [1, 'desc']
]) !!}
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/extensions/campaign-module/resources/views/collections/create.blade.php | Campaign/extensions/campaign-module/resources/views/collections/create.blade.php | @extends('campaign::layouts.app')
@section('title', 'Add collection')
@section('content')
<div class="c-header">
<h2>Collections</h2>
</div>
<div class="card">
<div class="card-header">
<h2>Create collection</h2>
</div>
<div class="card-body card-padding">
@include('flash::message')
{{ html()->modelForm($collection)->route('collections.store')->attribute('id', 'collection-form-root')->open() }}
@include('campaign::collections._form', ['action' => 'create'])
{{ html()->closeModelForm() }}
</div>
</div>
@endsection
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/bootstrap/app.php | Campaign/bootstrap/app.php | <?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Sentry\Laravel\Integration;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies(at: '*');
})
->withExceptions(function (Exceptions $exceptions) {
Integration::handles($exceptions);
})->create();
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/bootstrap/providers.php | Campaign/bootstrap/providers.php | <?php
return [
App\Providers\AppServiceProvider::class,
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/routes/web.php | Campaign/routes/web.php | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/routes/channels.php | Campaign/routes/channels.php | <?php
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/routes/api.php | Campaign/routes/api.php | <?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/routes/console.php | Campaign/routes/console.php | <?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/public/index.php | Campaign/public/index.php | <?php
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
}
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
// Bootstrap Laravel and handle the request...
/** @var Application $app */
$app = require_once __DIR__.'/../bootstrap/app.php';
$app->handleRequest(Request::capture()); | php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/app.php | Campaign/config/app.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application, which will be used when the
| framework needs to place the application's name in a notification or
| other UI elements where an application name needs to be displayed.
|
*/
'name' => env('APP_NAME', 'REMP Campaign'),
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services the application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => (bool) env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| the application so that it's available within Artisan commands.
|
*/
'url' => env('APP_URL', 'http://localhost'),
// Flag to force all generated URLs to be secure no matter the protocol of incoming request.
'force_https' => env('FORCE_HTTPS', false),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. The timezone
| is set to "UTC" by default as it is suitable for most use cases.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by Laravel's translation / localization methods. This option can be
| set to any locale for which you plan to have translation strings.
|
*/
'locale' => env('APP_LOCALE', 'en'),
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is utilized by Laravel's encryption services and should be set
| to a random, 32 character string to ensure that all encrypted values
| are secure. You should do this prior to deploying the application.
|
*/
'cipher' => 'AES-256-CBC',
'key' => env('APP_KEY'),
'previous_keys' => [
...array_filter(
explode(',', env('APP_PREVIOUS_KEYS', ''))
),
],
/*
|--------------------------------------------------------------------------
| Maintenance Mode Driver
|--------------------------------------------------------------------------
|
| These configuration options determine the driver used to determine and
| manage Laravel's "maintenance mode" status. The "cache" driver will
| allow maintenance mode to be controlled across multiple machines.
|
| Supported drivers: "file", "cache"
|
*/
'maintenance' => [
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
'store' => env('APP_MAINTENANCE_STORE', 'database'),
],
/*
|--------------------------------------------------------------------------
| Client Site Url
|--------------------------------------------------------------------------
|
| Url of the site, where remplib.js is implemented
|
*/
'client_site_url' => env('CLIENT_SITE_URL'),
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/tracy.php | Campaign/config/tracy.php | <?php
return [
'enabled' => env('APP_DEBUG') === true,
'showBar' => env('APP_ENV') !== 'production',
'accepts' => [
'text/html',
],
'appendTo' => 'body',
'editor' => env('APP_DEBUG_EDITOR', 'phpstorm://open?file=%file&line=%line'),
'maxDepth' => 4,
'maxLength' => 1000,
'scream' => true,
'showLocation' => true,
'strictMode' => true,
'panels' => [
'routing' => true,
'database' => true,
'view' => true,
'event' => true,
'session' => true,
'request' => true,
'auth' => true,
'html-validator' => true,
'terminal' => env('APP_DEBUG_TERMINAL', false), // it's initializing whole console kernel for each request
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/logging.php | Campaign/config/logging.php | <?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
| one of the channels defined in the "channels" configuration array.
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog",
| "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
'ignore_exceptions' => false,
],
'airbrake' => [
'driver' => 'custom',
'via' => App\AirbrakeLogger::class,
'level' => 'notice',
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'permission' => 0666,
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
'permission' => 0666,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'level' => env('LOG_LEVEL', 'critical'),
],
'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => SyslogUdpHandler::class,
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
],
],
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER'),
'with' => [
'stream' => 'php://stderr',
],
],
'syslog' => [
'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'),
],
'errorlog' => [
'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'),
],
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/session.php | Campaign/config/session.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "dynamodb", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
|
*/
'encrypt' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => env('SESSION_CONNECTION', 'session'),
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| While using one of the framework's cache driven session backends you may
| list a cache store that should be used for these sessions. This value
| must match with one of the application's configured cache "stores".
|
| Affects: "apc", "dynamodb", "memcached", "redis"
|
*/
'store' => env('SESSION_STORE', null),
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
),
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => env('SESSION_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
'secure' => env('SESSION_SECURE_COOKIE'),
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. You are free to modify this option if needed.
|
*/
'http_only' => true,
/*
|--------------------------------------------------------------------------
| Same-Site Cookies
|--------------------------------------------------------------------------
|
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| will set this value to "lax" since this is a secure default value.
|
| Supported: "lax", "strict", "none", null
|
*/
'same_site' => null,
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/queue.php | Campaign/config/queue.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
|
*/
'default' => env('QUEUE_CONNECTION', 'sync'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
'after_commit' => false,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
'block_for' => 0,
'after_commit' => false,
],
'sqs' => [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'after_commit' => false,
],
'redis' => [
'driver' => 'redis',
'connection' => 'queue',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
'after_commit' => false,
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/airbrake.php | Campaign/config/airbrake.php | <?php
return [
'enabled' => env('AIRBRAKE_ENABLED', false),
'projectKey' => env('AIRBRAKE_API_KEY', ''),
'host' => env('AIRBRAKE_API_HOST', 'api.airbrake.io'),
'environment' => env('APP_ENV', 'production'),
'projectId' => '_',
'appVersion' => '',
'rootDirectory' => '',
'httpClient' => '',
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/debugbar.php | Campaign/config/debugbar.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Debugbar Settings
|--------------------------------------------------------------------------
|
| Debugbar is enabled by default, when debug is set to true in app.php.
| You can override the value by setting enable to true or false instead of null.
|
*/
'enabled' => null,
/*
|--------------------------------------------------------------------------
| Storage settings
|--------------------------------------------------------------------------
|
| DebugBar stores data for session/ajax requests.
| You can disable this, so the debugbar stores data in headers/session,
| but this can cause problems with large data collectors.
| By default, file storage (in the storage folder) is used. Redis and PDO
| can also be used. For PDO, run the package migrations first.
|
*/
'storage' => [
'enabled' => true,
'driver' => 'file', // redis, file, pdo, custom
'path' => storage_path('debugbar'), // For file driver
'connection' => null, // Leave null for default connection (Redis/PDO)
'provider' => '' // Instance of StorageInterface for custom driver
],
/*
|--------------------------------------------------------------------------
| Vendors
|--------------------------------------------------------------------------
|
| Vendor files are included by default, but can be set to false.
| This can also be set to 'js' or 'css', to only include javascript or css vendor files.
| Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
| and for js: jquery and and highlight.js
| So if you want syntax highlighting, set it to true.
| jQuery is set to not conflict with existing jQuery scripts.
|
*/
'include_vendors' => true,
/*
|--------------------------------------------------------------------------
| Capture Ajax Requests
|--------------------------------------------------------------------------
|
| The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
| you can use this option to disable sending the data through the headers.
|
*/
'capture_ajax' => true,
/*
|--------------------------------------------------------------------------
| Clockwork integration
|--------------------------------------------------------------------------
|
| The Debugbar can emulate the Clockwork headers, so you can use the Chrome
| Extension, without the server-side code. It uses Debugbar collectors instead.
|
*/
'clockwork' => false,
/*
|--------------------------------------------------------------------------
| DataCollectors
|--------------------------------------------------------------------------
|
| Enable/disable DataCollectors
|
*/
'collectors' => [
'phpinfo' => true, // Php version
'messages' => true, // Messages
'time' => true, // Time Datalogger
'memory' => true, // Memory usage
'exceptions' => true, // Exception displayer
'log' => true, // Logs from Monolog (merged in messages if enabled)
'db' => true, // Show database (PDO) queries and bindings
'views' => true, // Views with their data
'route' => true, // Current route information
'laravel' => false, // Laravel version and environment
'events' => false, // All events fired
'default_request' => false, // Regular or special Symfony request logger
'symfony_request' => true, // Only one can be enabled..
'mail' => true, // Catch mail messages
'logs' => false, // Add the latest log messages
'files' => false, // Show the included files
'config' => false, // Display config settings
'auth' => false, // Display Laravel authentication status
'gate' => false, // Display Laravel Gate checks
'session' => true, // Display session data
],
/*
|--------------------------------------------------------------------------
| Extra options
|--------------------------------------------------------------------------
|
| Configure some DataCollectors
|
*/
'options' => [
'auth' => [
'show_name' => false, // Also show the users name/email in the debugbar
],
'db' => [
'with_params' => true, // Render SQL with the parameters substituted
'timeline' => false, // Add the queries to the timeline
'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
'explain' => [ // EXPERIMENTAL: Show EXPLAIN output on queries
'enabled' => false,
'types' => ['SELECT'], // ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+
],
'hints' => true, // Show hints for common mistakes
],
'mail' => [
'full_log' => false
],
'views' => [
'data' => false, //Note: Can slow down the application, because the data can be quite large..
],
'route' => [
'label' => true // show complete route on bar
],
'logs' => [
'file' => null
],
],
/*
|--------------------------------------------------------------------------
| Inject Debugbar in Response
|--------------------------------------------------------------------------
|
| Usually, the debugbar is added just before </body>, by listening to the
| Response after the App is done. If you disable this, you have to add them
| in your template yourself. See http://phpdebugbar.com/docs/rendering.html
|
*/
'inject' => true,
/*
|--------------------------------------------------------------------------
| DebugBar route prefix
|--------------------------------------------------------------------------
|
| Sometimes you want to set route prefix to be used by DebugBar to load
| its resources from. Usually the need comes from misconfigured web server or
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
*/
'route_prefix' => '_debugbar',
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/sentry.php | Campaign/config/sentry.php | <?php
return [
'dsn' => env('SENTRY_DSN'),
// capture release as git sha
// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
// When left empty or `null` the Laravel environment will be used
'environment' => env('SENTRY_ENVIRONMENT'),
'attach_stacktrace' => true,
'breadcrumbs' => [
// Capture Laravel logs in breadcrumbs
'logs' => true,
// Capture SQL queries in breadcrumbs
'sql_queries' => true,
// Capture bindings on SQL queries logged in breadcrumbs
'sql_bindings' => true,
// Capture queue job information in breadcrumbs
'queue_info' => true,
// Capture command information in breadcrumbs
'command_info' => true,
],
// @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii
'send_default_pii' => true,
'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 0.0)),
'sample_rate' => (static function () {
if (!app()->runningInConsole() && url()->getRequest()->path() === 'campaigns/showtime') {
return (float)(env('SENTRY_SHOWTIME_SAMPLERATE', 1.0));
}
return 1.0;
})(),
'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'),
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/cache.php | Campaign/config/cache.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
*/
'default' => env('CACHE_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
| Supported drivers: "apc", "array", "database", "file",
| "memcached", "redis", "dynamodb", "null"
|
*/
'stores' => [
'apc' => [
'driver' => 'apc',
],
'array' => [
'driver' => 'array',
'serialize' => false,
],
'database' => [
'driver' => 'database',
'table' => 'cache',
'connection' => null,
'lock_connection' => null,
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
],
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'cache',
'lock_connection' => 'default',
],
'dynamodb' => [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing a RAM based store such as APC or Memcached, there might
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
|
*/
'prefix' => env('CACHE_PREFIX', 'campaign'),
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/hashing.php | Campaign/config/hashing.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Hash Driver
|--------------------------------------------------------------------------
|
| This option controls the default hash driver that will be used to hash
| passwords for your application. By default, the bcrypt algorithm is
| used; however, you remain free to modify this option if you wish.
|
| Supported: "bcrypt", "argon"
|
*/
'driver' => 'bcrypt',
/*
|--------------------------------------------------------------------------
| Bcrypt Options
|--------------------------------------------------------------------------
|
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Bcrypt algorithm. This will allow you
| to control the amount of time it takes to hash the given password.
|
*/
'bcrypt' => [
'rounds' => env('BCRYPT_ROUNDS', 10),
],
/*
|--------------------------------------------------------------------------
| Argon Options
|--------------------------------------------------------------------------
|
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Argon algorithm. These will allow you
| to control the amount of time it takes to hash the given password.
|
*/
'argon' => [
'memory' => 1024,
'threads' => 2,
'time' => 2,
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/view.php | Campaign/config/view.php | <?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be checked for your views. Of course
| the usual Laravel view path has already been registered for you.
|
*/
'paths' => [
resource_path('views'),
],
/*
|--------------------------------------------------------------------------
| Compiled View Path
|--------------------------------------------------------------------------
|
| This option determines where all the compiled Blade templates will be
| stored for your application. Typically, this is within the storage
| directory. However, as usual, you are free to change this value.
|
*/
'compiled' => env(
'VIEW_COMPILED_PATH',
realpath(storage_path('framework/views'))
),
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/database.php | Campaign/config/database.php | <?php
if (!function_exists('configure_redis')) {
function configure_redis($database)
{
// If the app uses Redis Sentinel, different configuration is necessary.
//
// Default database and password need to be set within options.parameters to be actually used.
if ($sentinelService = env('REDIS_SENTINEL_SERVICE')) {
$redisClient = env('REDIS_CLIENT', 'predis');
if ($redisClient !== 'predis') {
throw new \Exception("Unable to configure Redis Sentinel for client '{$redisClient}', only 'predis' is supported. You can configure the client via 'REDIS_CLIENT' environment variable.");
}
$redisUrl = env('REDIS_URL');
if ($redisUrl === null) {
throw new \Exception("Unable to configure Redis Sentinel. Use 'REDIS_URL' environment variable to configure comma-separated sentinel instances.");
}
$config = explode(',', $redisUrl);
$config['options'] = [
'replication' => 'sentinel',
'service' => $sentinelService,
'parameters' => [
'database' => $database,
],
];
if ($password = env('REDIS_PASSWORD')) {
$config['options']['parameters']['password'] = $password;
}
return $config;
}
// default configuration supporting both url-based and host-port-database-based config.
return [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => $database,
'persistent' => env('REDIS_PERSISTENT', false),
];
}
}
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => env('DB_CONNECTION', 'mysql'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'url' => env('DATABASE_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
],
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'timezone' => '+00:00',
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'pgsql' => [
'driver' => 'pgsql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'prefix_indexes' => true,
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'prefix_indexes' => true,
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer body of commands than a typical key-value system
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'client' => env('REDIS_CLIENT', 'predis'),
'options' => [
'serializer' => 0, // \Redis::SERIALIZER_NONE
'cluster' => env('REDIS_CLUSTER', 'predis'),
'prefix' => env('REDIS_PREFIX', ''),
],
'default' => configure_redis(env('REDIS_DEFAULT_DATABASE', '0')),
'session' => configure_redis(env('REDIS_SESSION_DATABASE', '1')),
'cache' => configure_redis(env('REDIS_CACHE_DATABASE', '2')),
'queue' => configure_redis(env('REDIS_QUEUE_DATABASE', '3')),
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/ziggy.php | Campaign/config/ziggy.php | <?php
return [
// Filter laravel paths that are passed to JS via Ziggy library
'only' => ['comparison.*'],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/services.php | Campaign/config/services.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Mailgun, Postmark, AWS and more. This file provides the de facto
| location for this type of information, allowing packages to have
| a conventional file to locate the various service credentials.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
],
'postmark' => [
'token' => env('POSTMARK_TOKEN'),
],
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/datatables.php | Campaign/config/datatables.php | <?php
return [
/*
* DataTables search options.
*/
'search' => [
/*
* Smart search will enclose search keyword with wildcard string "%keyword%".
* SQL: column LIKE "%keyword%"
*/
'smart' => true,
/*
* Multi-term search will explode search keyword using spaces resulting into multiple term search.
*/
'multi_term' => true,
/*
* Case insensitive will search the keyword in lower case format.
* SQL: LOWER(column) LIKE LOWER(keyword)
*/
'case_insensitive' => true,
/*
* Wild card will add "%" in between every characters of the keyword.
* SQL: column LIKE "%k%e%y%w%o%r%d%"
*/
'use_wildcards' => false,
],
/*
* DataTables internal index id response column name.
*/
'index_column' => 'DT_Row_Index',
/*
* List of available builders for DataTables.
* This is where you can register your custom dataTables builder.
*/
'engines' => [
'eloquent' => \Yajra\DataTables\EloquentDataTable::class,
'query' => \Yajra\DataTables\QueryDataTable::class,
'collection' => \Yajra\DataTables\CollectionDataTable::class,
],
/*
* DataTables accepted builder to engine mapping.
* This is where you can override which engine a builder should use
* Note, only change this if you know what you are doing!
*/
'builders' => [
//Illuminate\Database\Eloquent\Relations\Relation::class => 'eloquent',
//Illuminate\Database\Eloquent\Builder::class => 'eloquent',
//Illuminate\Database\Query\Builder::class => 'query',
//Illuminate\Support\Collection::class => 'collection',
],
/*
* Nulls last sql pattern for Posgresql & Oracle.
* For MySQL, use '-%s %s'
*/
'nulls_last_sql' => '%s %s NULLS LAST',
/*
* User friendly message to be displayed on user if error occurs.
* Possible values:
* null - The exception message will be used on error response.
* 'throw' - Throws a \Yajra\DataTables\Exceptions\Exception. Use your custom error handler if needed.
* 'custom message' - Any friendly message to be displayed to the user. You can also use translation key.
*/
'error' => env('DATATABLES_ERROR', null),
/*
* Default columns definition of dataTable utility functions.
*/
'columns' => [
/*
* List of columns hidden/removed on json response.
*/
'excess' => ['rn', 'row_num'],
/*
* List of columns to be escaped. If set to *, all columns are escape.
* Note: You can set the value to empty array to disable XSS protection.
*/
'escape' => '*',
/*
* List of columns that are allowed to display html content.
* Note: Adding columns to list will make us available to XSS attacks.
*/
'raw' => ['action'],
/*
* List of columns are are forbidden from being searched/sorted.
*/
'blacklist' => ['password', 'remember_token'],
/*
* List of columns that are only allowed fo search/sort.
* If set to *, all columns are allowed.
*/
'whitelist' => '*',
],
/*
* JsonResponse header and options config.
*/
'json' => [
'header' => [],
'options' => 0,
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/filesystems.php | Campaign/config/filesystems.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/
'default' => env('FILESYSTEM_DISK', 'local'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "sftp", "s3"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'cdn' => [
'driver' => 'local',
'root' => storage_path('app'),
'url' => env('CDN_URL'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
],
],
/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/
'links' => [
public_path('storage') => storage_path('app/public'),
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/redis.php | Campaign/config/redis.php | <?php
return [
'redis_parameter_limit' => env('REDIS_PARAMETER_LIMIT', 1000000)
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/healthcheck.php | Campaign/config/healthcheck.php | <?php
return [
/**
* Base path for the health check endpoints, by default will use /
*/
'base-path' => '',
/**
* List of health checks to run when determining the health
* of the service
*/
'checks' => [
UKFast\HealthCheck\Checks\DatabaseHealthCheck::class,
UKFast\HealthCheck\Checks\LogHealthCheck::class,
UKFast\HealthCheck\Checks\RedisHealthCheck::class,
UKFast\HealthCheck\Checks\StorageHealthCheck::class
],
/**
* A list of middleware to run on the health-check route
* It's recommended that you have a middleware that only
* allows admin consumers to see the endpoint.
*
* See UKFast\HealthCheck\BasicAuth for a one-size-fits all
* solution
*/
'middleware' => [],
/**
* Used by the basic auth middleware
*/
'auth' => [
'user' => env('HEALTH_CHECK_USER'),
'password' => env('HEALTH_CHECK_PASSWORD'),
],
/**
* Can define a list of connection names to test. Names can be
* found in your config/database.php file. By default, we just
* check the 'default' connection
*/
'database' => [
'connections' => ['default'],
],
/**
* Can give an array of required environment values, for example
* 'REDIS_HOST'. If any don't exist, then it'll be surfaced in the
* context of the healthcheck
*/
'required-env' => [],
/**
* List of addresses and expected response codes to
* monitor when running the HTTP health check
*
* e.g. address => response code
*/
'addresses' => [],
/**
* Default response code for HTTP health check. Will be used
* when one isn't provided in the addresses config.
*/
'default-response-code' => 200,
/**
* Default timeout for cURL requests for HTTP health check.
*/
'default-curl-timeout' => 2.0,
/**
* An array of other services that use the health check package
* to hit. The URI should reference the endpoint specifically,
* for example: https://api.example.com/health
*/
'x-service-checks' => [],
/**
* A list of stores to be checked by the Cache health check
*/
'cache' => [
'stores' => [
'array'
]
],
/**
* A list of disks to be checked by the Storage health check
*/
'storage' => [
'disks' => [
'local',
]
],
/**
* Additional config can be put here. For example, a health check
* for your .env file needs to know which keys need to be present.
* You can pass this information by specifying a new key here then
* accessing it via config('healthcheck.env') in your healthcheck class
*/
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/mail.php | Campaign/config/mail.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send any email
| messages sent by your application. Alternative mailers may be setup
| and used as needed; however, this mailer will be used by default.
|
*/
'default' => env('MAIL_MAILER', 'smtp'),
/*
|--------------------------------------------------------------------------
| Mailer Configurations
|--------------------------------------------------------------------------
|
| Here you may configure all of the mailers used by your application plus
| their respective settings. Several examples have been configured for
| you and you are free to add your own as your application requires.
|
| Laravel supports a variety of mail "transport" drivers to be used while
| sending an e-mail. You will specify which one you are using for your
| mailers below. You are free to add additional mailers as required.
|
| Supported: "smtp", "sendmail", "mailgun", "ses",
| "postmark", "log", "array"
|
*/
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'auth_mode' => null,
],
'ses' => [
'transport' => 'ses',
],
'mailgun' => [
'transport' => 'mailgun',
],
'postmark' => [
'transport' => 'postmark',
],
'sendmail' => [
'transport' => 'sendmail',
'path' => '/usr/sbin/sendmail -bs',
],
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
],
'array' => [
'transport' => 'array',
],
],
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
|--------------------------------------------------------------------------
|
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
|
*/
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/cors.php | Campaign/config/cors.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/broadcasting.php | Campaign/config/broadcasting.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
| Supported: "pusher", "ably", "redis", "log", "null"
|
*/
'default' => env('BROADCAST_DRIVER', 'null'),
/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => true,
],
],
'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
'null' => [
'driver' => 'null',
],
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/config/auth.php | Campaign/config/auth.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'jwt',
'passwords' => null,
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| Supported: "session", "token"
|
*/
'guards' => [
'jwt' => [
'driver' => 'jwt',
'provider' => null,
],
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => null,
'hash' => false,
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model / table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
'throttle' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Password Confirmation Timeout
|--------------------------------------------------------------------------
|
| Here you may define the amount of seconds before a password confirmation
| times out and the user is prompted to re-enter their password via the
| confirmation screen. By default, the timeout lasts for three hours.
|
*/
'password_timeout' => 10800,
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/database/seeders/DatabaseSeeder.php | Campaign/database/seeders/DatabaseSeeder.php | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Remp\CampaignModule\Database\Seeders\CampaignSeeder;
use Remp\CampaignModule\Database\Seeders\CountrySeeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(CountrySeeder::class);
$this->call(CampaignSeeder::class);
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/resources/lang/en/passwords.php | Campaign/resources/lang/en/passwords.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'reset' => 'Your password has been reset!',
'sent' => 'We have e-mailed your password reset link!',
'throttled' => 'Please wait before retrying.',
'token' => 'This password reset token is invalid.',
'user' => "We can't find a user with that e-mail address.",
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/resources/lang/en/pagination.php | Campaign/resources/lang/en/pagination.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '« Previous',
'next' => 'Next »',
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/resources/lang/en/validation.php | Campaign/resources/lang/en/validation.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'The :attribute must be accepted.',
'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute must only contain letters.',
'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
'alpha_num' => 'The :attribute must only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.',
'array' => 'The :attribute must have between :min and :max items.',
],
'boolean' => 'The :attribute field must be true or false.',
'confirmed' => 'The :attribute confirmation does not match.',
'date' => 'The :attribute is not a valid date.',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'The :attribute does not match the format :format.',
'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.',
'ends_with' => 'The :attribute must end with one of the following: :values.',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'file' => 'The :attribute must be greater than :value kilobytes.',
'string' => 'The :attribute must be greater than :value characters.',
'array' => 'The :attribute must have more than :value items.',
],
'gte' => [
'numeric' => 'The :attribute must be greater than or equal :value.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'string' => 'The :attribute must be greater than or equal :value characters.',
'array' => 'The :attribute must have :value items or more.',
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
'array' => 'The :attribute must have less than :value items.',
],
'lte' => [
'numeric' => 'The :attribute must be less than or equal :value.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'string' => 'The :attribute must be less than or equal :value characters.',
'array' => 'The :attribute must not have more than :value items.',
],
'max' => [
'numeric' => 'The :attribute must not be greater than :max.',
'file' => 'The :attribute must not be greater than :max kilobytes.',
'string' => 'The :attribute must not be greater than :max characters.',
'array' => 'The :attribute must not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'multiple_of' => 'The :attribute must be a multiple of :value.',
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'password' => 'The password is incorrect.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values are present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'prohibited' => 'The :attribute field is prohibited.',
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'starts_with' => 'The :attribute must start with one of the following: :values.',
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'devices.0' => [
'required' => 'At least one device needs to be enabled.',
],
'variants.*.banner_id.required_unless' => 'You have to choose banner for every AB testing variant.',
'variants.0.proportion' => [
'required' => 'All variants must have proportion value.'
]
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [
'banner_id' => 'banner',
'alt_banner_id' => 'banner B alternative',
'pageview_rules.*.num' => 'pageview rule n-th',
'pageview_rules.*.rule' => 'pageview rule type',
],
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Campaign/resources/lang/en/auth.php | Campaign/resources/lang/en/auth.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'These credentials do not match our records.',
'password' => 'The provided password is incorrect.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Sso/server.php | Sso/server.php | <?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Sso/app/User.php | Sso/app/User.php | <?php
namespace App;
/**
* Fallback User class - former class was moved to \App\Models\User, but some User object
* instances might have already been serialized to session (see AuthController)
*
* Therefore keep this object to correctly unserialize these objects
* @package App
*/
class User extends \App\Models\User
{
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Sso/app/UrlHelper.php | Sso/app/UrlHelper.php | <?php
namespace App;
use League\Uri\Components\Query;
use League\Uri\Http;
use League\Uri\QueryString;
use League\Uri\Uri;
class UrlHelper
{
/**
* appendQueryParams parses provided URL and appends key-value $params as next query parameters to the URL.
* Updated URL is returned.
*/
public function appendQueryParams(string $originalUrl, array $params): string
{
$url = Uri::new($originalUrl);
$query = Query::new($url->getQuery());
foreach ($params as $key => $value) {
$query = $query->appendTo($key, $value);
}
return $url->withQuery($query->value());
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Sso/app/EmailWhitelist.php | Sso/app/EmailWhitelist.php | <?php
namespace App;
use Illuminate\Support\Str;
class EmailWhitelist
{
private $disabled = false;
private $patterns = [];
public function __construct()
{
switch ($list = config('jwt.domain_whitelist')) {
case '*':
$this->disabled = true;
break;
default:
$this->patterns = explode(',', $list);
}
}
public function validate($email)
{
if ($this->disabled) {
return true;
}
foreach ($this->patterns as $pattern) {
if (Str::endsWith($email, $pattern)) {
return true;
}
}
return false;
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
remp2020/remp | https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Sso/app/Http/Requests/ApiTokenRequest.php | Sso/app/Http/Requests/ApiTokenRequest.php | <?php
namespace App\Http\Requests;
use App\Models\ApiToken;
use Illuminate\Foundation\Http\FormRequest;
class ApiTokenRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return ApiToken::$rules;
}
}
| php | MIT | c616d27734c65eb87b470751928ff1119c535549 | 2026-01-05T05:12:01.604239Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.