Skip to content

Instantly share code, notes, and snippets.

View jongravois's full-sized avatar

Jonathan Gravois jongravois

View GitHub Profile
<?php
namespace App\Http\Livewire\Customers;
use App\Models\Company;
use Livewire\Component;
class CompanyRow extends Component
{
public Company $company;
<?php namespace App\Actions;
use Carbon\Carbon;
use Composer\Config;
use Illuminate\Support\Facades\Http;
class DeniedParty
{
public static function check($name=null)
{
<?php
namespace App\Http\Livewire\Tickets;
use App\Models\Ticket;
use Livewire\Component;
use Spatie\MediaLibraryPro\Http\Livewire\Concerns\WithMedia;
class SingleTicket extends Component
{
@push('pagetitle', 'Project GP Report')
<div class="relative">
<div class="absolute right-0 mt-1 mr-1 z-50" wire:loading>
<x-icons.cog
class="mr-4 h-6 w-6 animate-spin text-red" />
</div>
<div>
<div class="relative mt-4 p-4">
<?php
namespace App\Http\Livewire\Sales;
use App\Models\Consignment;
use App\Models\Project;
use Livewire\Component;
class ProfitReport extends Component
{
<?php
namespace Tests\Feature\Jobs;
use App\Jobs\ProcessInvoiceJob;
use App\Models\ConsignmentBand;
use App\Models\PostedInvoice;
use App\Models\Project;
use App\Models\ProjectFin;
use Carbon\Carbon;
<?php namespace App\Pipes\Invoices;
use App\Models\ConsignmentBand;
use App\Models\PostedInvoice;
use App\Models\Project;
use Closure;
class BandedRatesProfit
{
public function handle(PostedInvoice $invoice, Closure $next)
<?php namespace App\Pipes\Invoices;
use App\Models\PostedInvoice;
use App\Models\Project;
use Closure;
class FixedRateProfit
{
public function handle(PostedInvoice $invoice, Closure $next)
{
<?php namespace App\Pipes\Invoices;
use App\Models\PostedInvoice;
use Closure;
class NoConsignmentAbort
{
public function handle(PostedInvoice $invoice, Closure $next)
{
if(!$invoice->consignment_code) {
<?php
namespace App\Jobs;
use App\Models\ConsignmentBand;
use App\Models\PostedInvoice;
use App\Models\Project;
use App\Pipes\Invoices\BandedRatesProfit;
use App\Pipes\Invoices\FixedRateProfit;
use App\Pipes\Invoices\NoConsignmentAbort;