@extends('layouts.admin') @section('content') Package Management Items New Item New Item @include('include.errors') @if(isset($item) && $action=='Edit') @else @endif @csrf @if(isset($item)) @php $title=$item->title; @endphp @elseif(old('title')) @php $title=old('title'); @endphp @else @php $title=''; @endphp @endif Title * @if(isset($item)) @php $alias=''; @endphp @elseif(old('alias')) @php $alias=old('alias'); @endphp @else @php $alias=''; @endphp @endif Alias @if(isset($item)) @php $unit_id=$item->unit_id; @endphp @elseif(old('unit_id')) @php $unit_id=old('unit_id'); @endphp @else @php $unit_id=0; @endphp @endif Unit * Select unit @foreach($units as $unit) id) ? 'selected' : '' !!}>{{ $unit->name }} @endforeach @if(isset($item)) @php $description=$item->description; @endphp @elseif(old('description')) @php $description=old('description'); @endphp @else @php $description=''; @endphp @endif Description {{ $description }} @if(isset($item)) @php $swipe_item_id=$item->swipe_item_id; @endphp @elseif(old('swipe_item_id')) @php $swipe_item_id=old('swipe_item_id'); @endphp @else @php $swipe_item_id=0; @endphp @endif Swipe Item With --Select-- @foreach($swipe_items as $swipeItem) id==$swipe_item_id) ? 'selected' : '' !!}>{{$swipeItem->title }} @endforeach @if(isset($item)) @php $swipe_qty=$item->swipe_qty; @endphp @elseif(old('swipe_qty')) @php $swipe_qty=old('swipe_qty'); @endphp @else @php $swipe_qty=0; @endphp @endif Swipe Quantity Photo @if(isset($item)) @if ($item->photo == NULL) @else @endif @else @endif @if(isset($item)) @if($item->active==1) @php $activeChk='checked'; @endphp @else @php $activeChk=''; @endphp @endif @elseif(old('active')) @php $activeChk='checked'; @endphp @else @php $activeChk='checked'; @endphp @endif Active @endsection