Ali Abbas
I have a OrderResource i want to have different forms for each create and edit order page?
@DrByte i have wizards on create form and on edit form i have tabs therefore i want this condition or something like from which i can understand now it is edit module or create ?
9 replies
how to make a link field when user click on this it will redirect to the link?
also another way is TextInput::make('Link')
->url()
->suffixAction(fn (?string $state): Action =>
Action::make('visit')
->icon('heroicon-s-external-link')
->url(
filled($state) ? "{$state}" : null,
shouldOpenInNewTab: true,
),
)
->hidden(fn (Closure $get) => $get('supplier_id') == '')
->columns(1),
14 replies
how to make a link field when user click on this it will redirect to the link?
@NÕØBÎTÅ Tabs\Tab::make('Supplier')->schema([
Repeater::make(name: 'productSuppliers')
->relationship()
->schema($this->_tabSupplierFields())
->columns(3)
]), // End Supplier tab
14 replies
how to make a link field when user click on this it will redirect to the link?
@Patrick Boivin i am just want this as a text not field or icon when user click on this it should show in next tab i am using like this
Select::make('supplier_id')
->label('Supplier')
->options(Supplier::all()->pluck('supplier_name', 'id'))
->required()
->afterStateUpdated(function (Closure $set, $state) {
if ($state !== '') {
$supplier = Supplier::find($state);
if ($supplier) {
$set('Link', $supplier->website);
}
}
})
->searchable()
->reactive()
->columns(2),
TextInput::make('Link')
->hidden(fn (Closure $get) => $get('supplier_id') == '')
->columns(1),
14 replies
I have a ViewColumn in getTables and i have 3 columns inside this view how can i make it searchable
@daisy21 here is the code of product_id.blade.php
<div class="text-[10px] whitespace-normal ml-3">
@php
$asin = ($getRecord()->asin) ? $getRecord()->asin :' -';
$upc = ($getRecord()->upc ) ? $getRecord()->upc : ' -';
$fnsku = ($getRecord()->fnsku) ? $getRecord()->fnsku : ' -';
@endphp
@if($fnsku)
<ul class="max-w-md space-y-1 list-none list-inside ">
<li class="text-xs">
<strong>ASIN: </strong>{{$asin}}
</li>
<li class="text-xs">
<strong>FNSKU:</strong>{{$fnsku}}
</li>
<li class="text-xs">
<strong>UPC:</strong>{{$upc}}
</li>
</ul>
@endif
</div>
8 replies