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\Deals;
use App\Models\Deal;
use App\Models\DealFin;
use App\Services\DealFinancialsService;
use App\User;
use Carbon\Carbon;
use Livewire\Component;
<?php
namespace App\Models;
use App\Model;
/**
* App\Models\DealFin
*
* @property int $id
<?php
use App\Models\DealFin;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
class DealsFinSeeder extends Seeder
{
public function run()
<div class="px-4 py-6">
<x-page.header title="Invoices Manager"></x-page.header>
<div class="flex justify-between items-center">
<div class="w-1/3 flex items-center">
<x-form.vee-group
for="start"
label="From"
class="m-8 w-full">
<x-input.text
<?php
namespace App\Http\Livewire\Levo;
use App\Models\Invoice;
use Livewire\Component;
class InvoicesManager extends Component
{
public $showTable = false;
<?php
namespace App\Http\Livewire\Invoices;
use App\Models\Invoice;
use Carbon\Carbon;
use Kdion4891\LaravelLivewireTables\Column;
use Kdion4891\LaravelLivewireTables\TableComponent;
class InvoicesTable extends TableComponent
@push('scripts')
<script>
const faq = [
{
question: "What is Alpine.js?",
answer: [
"Bacon ipsum dolor amet boudin hamburger jerky spare ribs, bacon leberkas beef ribs sausage turkey pancetta tenderloin chicken.",
"Meatball landjaeger turducken. Bacon bresaola tenderloin cow rump pork chop."
]
},
<div>
<form method="post"
accept-charset="utf-8"
enctype="multipart/form-data"
action="{{$destination}}">
@csrf
<div class="mb-8 flex items-center justify-center">
<label class="flex flex-col items-center px-4 py-6 bg-white text-blue-500 rounded-lg shadow-lg tracking-wide uppercase border border-blue-500 cursor-pointer hover:bg-gray-200"
<?php
namespace App\Http\Livewire\Utilities;
use Livewire\Component;
class Uploader extends Component
{
public $destination;
public $label;
<div>
<tr>
<td>{{$legalName}}</td>
<td>{{$companyCode}}</td>
<td>{{$location}}</td>
<td>{{$country}}</td>