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\Actions\DeniedParty;
use App\Http\Livewire\DataTable\WithSorting;
use App\Models\Company;
use App\Models\CompanyCustomerAgreement;
use App\Models\UserPref;
use App\Notifications\InvitedCustomerAgreement;
@push('pagetitle', 'CAF Portal')
<x-page.spinner-layout>
<x-page.header title="Customer Agreements Portal"></x-page.header>
<div class="px-8 py-4 space-y-4">
<div class="mb-4 w-1/2 flex">
<x-elements.search filterText="Filter by Company or Company Code" />
</div>
<?php
namespace App\Http\Livewire\Lots;
use App\Models\ConsignmentBand;
use App\Models\Project;
use Livewire\Component;
class BandEditor extends Component
{
<div class="w-1/2 m-auto">
<table class="w-full tw-table">
<thead>
<tr>
<th>Low</th>
<th>High</th>
<th>Rate</th>
<th>&nbsp;</th>
</tr>
<?php
namespace Tests\Models;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Support\Facades\Schema;
use Tests\TestCase;
class CompanyTest extends TestCase
<?php
namespace Tests\Feature;
use App\Http\Livewire\Modeler\ImportManifest;
use App\Http\Livewire\Modeler\ModelerHome;
use App\Http\Livewire\Modeler\ResetManifest;
use App\Models\AcModel;
use App\Models\Aircraft;
use App\Models\Component;
<?php
namespace Database\Factories;
use App\Models\Aircraft;
use App\Models\DealGroup;
use App\Models\DealSolution;
use App\Models\DealTransactionType;
use App\Models\Project;
use App\Models\ProjectStatus;
@push('pagetitle', 'Manifest Modeler')
<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 class="relative p-4">
<?php
use Illuminate\Support\Str;
return [
'default' => env('DB_CONNECTION', 'mysql'),
'connections' => [
<form wire:submit.prevent="resetManifest">
<x-modals.stand-alone tooltip="OCCM Reset">
<x-slot name="trigger">
<span class="cursor-pointer">
@svg('solid/upload', 'text-green h-4 w-4')
</span>
</x-slot>
<x-slot name="header">
Manifest Reset for {{$ac_model->title}}