Skip to content

Instantly share code, notes, and snippets.

@adrelliott
adrelliott / .gitignore
Created January 6, 2022 08:10
[Cleaver] Uploading empty dist directory
*
*/
!.gitignore
// ContactsController.php
public function index(Company $company)
{
$query = Contact::where('company_id', $company->id);
return view('crm.contacts.index', compact('query'));
}
// Livewire/TableComponent.php
public function mount(Builder $query)
{
<!DOCTYPE html>
<html :class="{ 'theme-dark': dark }" x-data="data()" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Modals - Windmill Dashboard</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<!DOCTYPE html>
<!--[if IE 8]>
<html class="ie ie8" lang="en-GB" prefix="og: http://ogp.me/ns#">
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html lang="en-GB" prefix="og: http://ogp.me/ns#">
<!--<![endif]-->
<head>
<meta charset="UTF-8">
<div style="text-align:center; padding: 40px 0">
<h2>Our Happy Clients</h2>
<img src="http://www.twistedimage.media/wp-content/uploads/2016/11/heart328.png" style="float:left;padding:0 10px" width="350px">
<img src="http://www.twistedimage.media/wp-content/uploads/2016/11/icon.png" style="float:left;padding:0 10px" width="300px">
<img src="https://www.biglotteryfund.org.uk/assets/images/logos/en/pink-large.jpg" style="float:left;padding:0 10px" width="200px"><img src="http://www.twistedimage.media/wp-content/uploads/2016/11/getfile-300x129.jpeg" style="float:left;padding:20px 10px 0" width="250px">
<div style="float:clear"></div>
</div>
<!-- Clearly, I'd add the styling in the CSS file, if we mde the amendments to the proper website! -->
/** Changing the Header **/
header {
background: #d82222; // Paste in your new header colour
}
footer .fmn {
background: #b96363; // Paste in your new footer colour
}
/** Changing the nav links **/
header ul.menu > li > a {
// Paste the following into the end of your function.php file...
/**
* Filter Add URL params (like UTM codes and dynamic content) to every form in TCB and Leads
*
* @param $lead_group - (WP Post Object) Lead Group content type
* @param $form_type - (WP Post Object) Form Type content type
* @param $form_variation - (Array) Form variation data
*
* @return string - additional dynamic code to appear before </form> tag
@section('show-child-view')
{{-- Overwrites this section in parent --}}
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
{{ Former::text('order_title')->class('form-control input-sm copy-destination')->label('Order Summary')->placeholder('Add summary of order here')->label('New lable from child view') }}
</div>
<div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
@extends('layouts.modal')
@section('modal-body')
<h1>Create an order</h1>
<div class="row">
{{ Former::open()
->role('Form')
->class('modal-ajax-form')
->tableId('orders')