Skip to content

Instantly share code, notes, and snippets.

View hovsep's full-sized avatar
🤓
Constant learner

Ovsep Avakian hovsep

🤓
Constant learner
  • SumUp
  • Sofia, Bulgaria
View GitHub Profile
<?php
namespace App\Http\Controllers\Api;
use App\Entities\AddressVerificationStatus;
use App\Models\AuStreet;
use App\Models\UserForward;
use App\Models\UserLocation;
use App\Models\UserSubscriptionHistoryItem;
use App\User;
<?php
namespace App\Jobs\EmlCampaign;
use App\Entities\CampaignState;
use App\Entities\RecipientState;
use App\Exceptions\CampaignIsNotRunningException;
use App\Models\EmlCampaign;
use App\Utils\Campaign\Manager;
use Illuminate\Bus\Queueable;
<template>
<div>
<h2 class="card-title text-center">
{{ cargo.bids.length }} bids
</h2>
<div class="row">
<div class="col-md-12">
<div class="ribbon-wrapper card bg-light" v-for="b in cargo.bids" :id="'bid_' + b.id">
<div class="ribbon ribbon-bookmark" v-bind:class="{'ribbon-info': b.state == 'auction', 'ribbon-primary': b.state == 'won', 'ribbon-warning': b.state == 'rejected' }">
<span class="font-bold">
@hovsep
hovsep / Controller.php
Created May 21, 2018 09:11
Example of Laravel code
<?php
namespace App\Http\Controllers;
use App\Entities\CargoCategory;
use App\Entities\CargoState;
use App\Entities\DocumentType;
use App\Entities\PaymentTerm;
use App\Entities\LocationType;
use App\Entities\TruckFeature;
@hovsep
hovsep / Controller-example.php
Created May 11, 2017 17:09
Laravel 5.4 code example
<?php
namespace App\Http\Controllers;
use App\Entities\CampaignState;
use App\Entities\EventAction;
use App\Entities\GroupScope;
use App\Entities\SubjectMode;
use App\Facades\BladeStringRenderer;
@hovsep
hovsep / app.blade.php
Created April 18, 2017 15:11
Bootstrap 3 markup example with Blade template
<!DOCTYPE html>
<html lang="en">
<head>
@section('head')
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">