Skip to content

Instantly share code, notes, and snippets.

View jongravois's full-sized avatar

Jonathan Gravois jongravois

View GitHub Profile
@push('pagetitle', 'Workscopes')
<x-workscopes.nav-layout>
<x-page.header title="Workscope Manager" />
<div class="px-8 py-4 space-y-4">
<div class="flex justify-between">
<!-- SEARCH -->
<?php
namespace App\Http\Livewire\Workscopes;
use App\Models\Disassembly;
use Livewire\Component;
class WorkscopesHome extends Component
{
public $search = '';
<div>
<!-- Top Bar -->
<div class="w-full flex justify-between">
<div class="w-1/3 flex items-center space-x-4">
<span class="flex-1">
<x-input.search
wire:model="filters.search"
placeholder="Filter by Invoice Number..."/>
@push('pagetitle', 'Levo Sales Monthly')
<x-page.menued>
<x-page.header title="Monthly Sales Report">
<x-elements.header-previous-button/>
</x-page.header>
<div class="px-8 py-4">
<x-table header>
<x-slot name="head">
<?php
namespace App\Console\Commands;
use App\Models\MonthlyReportRow;
use App\Models\PostedInvoice;
use App\Models\Troll;
use Illuminate\Console\Command;
class TrollMonthlySalesReports extends Command
<?php
namespace App\Traits;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
trait Posted
{
public function scopeYearlyReport(Builder $query, $year = null): Builder
<?php
namespace App\Models;
use App\Pipes\Invoices\BandedRatesProfit;
use App\Pipes\Invoices\FixedRateProfit;
use App\Pipes\Invoices\NoConsignmentAbort;
use App\Pipes\LegacyInvoices\LegacyBandedRatesProfit;
use App\Pipes\LegacyInvoices\LegacyFixedRateProfit;
use App\Pipes\LegacyInvoices\NoConsignmentLegacyAbort;
<?php
namespace Tests\Feature\Nimbbl;
use App\Http\Livewire\Invoices\InvoicesTable;
use App\Models\PostedInvoice;
use App\Models\User;
use Carbon\Carbon;
use Database\Seeders\PostedInvoicesTableSeeder;
use Illuminate\Support\Facades\Schema;
<span>
<x-table.thin-row class="bg-green-50">
<x-table.cell-centered>
<button class="flex"
wire:click="$toggle('expanded')">
@if($expanded)
@svg('solid/caret-down', 'mr-4 w-4 h-4 text-gray-700')
@else
@svg('solid/caret-right', 'mr-4 w-4 h-4 text-gray-700')
<?php
namespace App\Http\Livewire\Reports\Monthly;
use Livewire\Component;
class SalesRevenue extends Component
{
public $expanded = true;